istagit-index: owner is one line, strip newline - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit f17def25bed839664b3242b5f31792d3aa1f53c6 /scm/stagit-gopher/commit/f17def25bed839664b3242b5f31792d3aa1f53c6.gph bitreich.org 70 1parent 289ecda4aa8688b65300ae647912d791246e4abd /scm/stagit-gopher/commit/289ecda4aa8688b65300ae647912d791246e4abd.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Tue, 5 Jan 2016 21:41:03 +0100 Err bitreich.org 70 i Err bitreich.org 70 istagit-index: owner is one line, strip newline Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit-index.c | 1 + Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit-index.c b/stagit-index.c /scm/stagit-gopher/file/stagit-index.c.gph bitreich.org 70 i@@ -221,6 +221,7 @@ main(int argc, char *argv[]) Err bitreich.org 70 i if (fp) { Err bitreich.org 70 i if (!fgets(owner, sizeof(owner), fp)) Err bitreich.org 70 i owner[0] = '\0'; Err bitreich.org 70 i+ owner[strcspn(owner, "\n")] = '\0'; Err bitreich.org 70 i fclose(fp); Err bitreich.org 70 i } Err bitreich.org 70 i writelog(stdout); Err bitreich.org 70 .