stagit

stagit-index: owner is one line, strip newline

Hiltjo Posthuma contact@arjunchoudhary.com

commit: bd495d0 parent: 288401e
1 files changed, 1 insertions(+), 0 deletions(-)
Mstagit-index.c+1-0
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);