Mercurial > emacs
comparison src/doprnt.c @ 20310:b6fd8353113b
(doprnt1): Declare `charbuf' as unsigned char.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Fri, 21 Nov 1997 14:48:34 +0000 |
parents | a30375801ad7 |
children | 88d7475304df |
comparison
equal
deleted
inserted
replaced
20309:51fb1f36e614 | 20310:b6fd8353113b |
---|---|
109 char *string; | 109 char *string; |
110 char fixed_buffer[20]; /* Default buffer for small formatting. */ | 110 char fixed_buffer[20]; /* Default buffer for small formatting. */ |
111 char *fmtcpy; | 111 char *fmtcpy; |
112 int minlen; | 112 int minlen; |
113 int size; /* Field width factor; e.g., %90d */ | 113 int size; /* Field width factor; e.g., %90d */ |
114 char charbuf[5]; /* Used for %c. */ | 114 unsigned char charbuf[5]; /* Used for %c. */ |
115 | 115 |
116 if (format_end == 0) | 116 if (format_end == 0) |
117 format_end = format + strlen (format); | 117 format_end = format + strlen (format); |
118 | 118 |
119 if ((format_end - format + 1) < sizeof (fixed_buffer)) | 119 if ((format_end - format + 1) < sizeof (fixed_buffer)) |