From f17def25bed839664b3242b5f31792d3aa1f53c6 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 5 Jan 2016 21:41:03 +0100 Subject: [PATCH] stagit-index: owner is one line, strip newline --- stagit-index.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stagit-index.c b/stagit-index.c index 356f08c..7eb74ea 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -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); -- libgit2 1.1.1