aboutsummaryrefslogtreecommitdiffstats
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-01-05 21:43:14 +0100
committerHiltjo Posthuma <[email protected]>2016-01-05 21:43:14 +0100
commitf373cc7235deaec49d2aa86ecdb55c9dd6dc5282 (patch)
treedfc1a85678393103093da05200beba7b912e35be /stagit.c
parente51ec34dbe4bce95f1677db9a4f32dfbe0ad3432 (diff)
downloadstagit-f373cc7235deaec49d2aa86ecdb55c9dd6dc5282.tar.gz
stagit-f373cc7235deaec49d2aa86ecdb55c9dd6dc5282.zip
clone url is one line, strip newline
Diffstat (limited to '')
-rw-r--r--stagit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stagit.c b/stagit.c
index 9527b01..3693efe 100644
--- a/stagit.c
+++ b/stagit.c
@@ -1008,6 +1008,7 @@ main(int argc, char *argv[])
if (fpread) {
if (!fgets(cloneurl, sizeof(cloneurl), fpread))
cloneurl[0] = '\0';
+ cloneurl[strcspn(cloneurl, "\n")] = '\0';
fclose(fpread);
}