Mercurial > emacs
comparison src/doprnt.c @ 5053:b98e742f0b05
(doprnt): Cast the value alloca returns.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 16 Nov 1993 16:21:26 +0000 |
parents | ef34c5a4d264 |
children | d9f096200099 |
comparison
equal
deleted
inserted
replaced
5052:b605cd28d596 | 5053:b98e742f0b05 |
---|---|
67 format_end = format + strlen (format); | 67 format_end = format + strlen (format); |
68 | 68 |
69 if ((format_end - format + 1) < sizeof (fixed_buffer)) | 69 if ((format_end - format + 1) < sizeof (fixed_buffer)) |
70 fmtcpy = fixed_buffer; | 70 fmtcpy = fixed_buffer; |
71 else | 71 else |
72 fmtcpy = alloca (format_end - format + 1); | 72 fmtcpy = (char *) alloca (format_end - format + 1); |
73 | 73 |
74 bufsize--; | 74 bufsize--; |
75 | 75 |
76 /* Loop until end of format string or buffer full. */ | 76 /* Loop until end of format string or buffer full. */ |
77 while (fmt != format_end && bufsize > 0) | 77 while (fmt != format_end && bufsize > 0) |