stagit-index: owner is one line, strip newline
This commit is contained in:
parent
289ecda4aa
commit
f17def25be
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ main(int argc, char *argv[])
|
|||
if (fp) {
|
||||
if (!fgets(owner, sizeof(owner), fp))
|
||||
owner[0] = '\0';
|
||||
owner[strcspn(owner, "\n")] = '\0';
|
||||
fclose(fp);
|
||||
}
|
||||
writelog(stdout);
|
||||
|
|
Loading…
Reference in a new issue