mirror of
git://git.codemadness.org/stagit
synced 2025-03-09 09:09:12 -04:00
stagit-index: owner is one line, strip newline
This commit is contained in:
parent
289ecda4aa
commit
f17def25be
@ -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…
x
Reference in New Issue
Block a user