stagit-index: owner is one line, strip newline

This commit is contained in:
Hiltjo Posthuma 2016-01-05 21:41:03 +01:00
parent 289ecda4aa
commit f17def25be

View file

@ -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);