From 4b5a548d595a41b9cf226e9c5510c1fc0b5e2f6e Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 9 Oct 2013 21:29:30 -0400 Subject: [PATCH] * lib-src/make-docfile.c (search_lisp_doc_at_eol): Use int rather than char with getc. Fixes: debbugs:15481 --- lib-src/ChangeLog | 5 +++++ lib-src/make-docfile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1186a0c025c..0b91cc4887f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2013-10-10 Glenn Morris + + * make-docfile.c (search_lisp_doc_at_eol): + Use int rather than char with getc. (Bug#15481) + 2013-09-20 Paul Eggert A simpler, centralized INLINE. diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index 73d1a0eb31d..36eb71c587b 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -1075,7 +1075,7 @@ read_lisp_symbol (FILE *infile, char *buffer) static int search_lisp_doc_at_eol (FILE *infile) { - char c = 0, c1 = 0, c2 = 0; + int c = 0, c1 = 0, c2 = 0; /* Skip until the end of line; remember two previous chars. */ while (c != '\n' && c != '\r' && c != EOF) -- 2.11.4.GIT