clone url is one line, strip newline
This commit is contained in:
parent
e51ec34dbe
commit
f373cc7235
1 changed files with 1 additions and 0 deletions
1
stagit.c
1
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue