projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e51ec34
)
clone url is one line, strip newline
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 5 Jan 2016 20:43:14 +0000
(21:43 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 5 Jan 2016 20:43:14 +0000
(21:43 +0100)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index 9527b0124009b53cd64e5bdfb72b53bd96e4e6ab..3693efe5b9948021ba2fb3231eb52186a935d2ea 100644
(file)
--- 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);
}