diff options
| author | Glenn Morris | 2013-10-09 21:29:30 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-10-09 21:29:30 -0400 |
| commit | 4b5a548d595a41b9cf226e9c5510c1fc0b5e2f6e (patch) | |
| tree | f4c1a604a166fe425a2773a4ea29cec5c6c76f02 /lib-src | |
| parent | c6e8ae77b327df99219031e56c7938981f63b4c9 (diff) | |
| download | emacs-4b5a548d595a41b9cf226e9c5510c1fc0b5e2f6e.tar.gz emacs-4b5a548d595a41b9cf226e9c5510c1fc0b5e2f6e.zip | |
* lib-src/make-docfile.c (search_lisp_doc_at_eol): Use int rather than char
with getc.
Fixes: debbugs:15481
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 @@ | |||
| 1 | 2013-10-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * make-docfile.c (search_lisp_doc_at_eol): | ||
| 4 | Use int rather than char with getc. (Bug#15481) | ||
| 5 | |||
| 1 | 2013-09-20 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-09-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | A simpler, centralized INLINE. | 8 | 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) | |||
| 1075 | static int | 1075 | static int |
| 1076 | search_lisp_doc_at_eol (FILE *infile) | 1076 | search_lisp_doc_at_eol (FILE *infile) |
| 1077 | { | 1077 | { |
| 1078 | char c = 0, c1 = 0, c2 = 0; | 1078 | int c = 0, c1 = 0, c2 = 0; |
| 1079 | 1079 | ||
| 1080 | /* Skip until the end of line; remember two previous chars. */ | 1080 | /* Skip until the end of line; remember two previous chars. */ |
| 1081 | while (c != '\n' && c != '\r' && c != EOF) | 1081 | while (c != '\n' && c != '\r' && c != EOF) |