diff options
author | Hiltjo Posthuma <[email protected]> | 2016-01-05 21:43:14 +0100 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2016-01-05 21:43:14 +0100 |
commit | f373cc7235deaec49d2aa86ecdb55c9dd6dc5282 (patch) | |
tree | dfc1a85678393103093da05200beba7b912e35be /stagit.c | |
parent | e51ec34dbe4bce95f1677db9a4f32dfbe0ad3432 (diff) | |
download | stagit-f373cc7235deaec49d2aa86ecdb55c9dd6dc5282.tar.gz stagit-f373cc7235deaec49d2aa86ecdb55c9dd6dc5282.zip |
clone url is one line, strip newline
Diffstat (limited to '')
-rw-r--r-- | stagit.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |