stagit-index: owner is one line, strip newline
1 files changed, 1 insertions(+), 0 deletions(-) | |||
---|---|---|---|
M | stagit-index.c | +1 | -0 |
1@@ -221,6 +221,7 @@ main(int argc, char *argv[])
2 if (fp) {
3 if (!fgets(owner, sizeof(owner), fp))
4 owner[0] = '\0';
5+ owner[strcspn(owner, "\n")] = '\0';
6 fclose(fp);
7 }
8 writelog(stdout);