aboutsummaryrefslogtreecommitdiffstats
path: root/src/doprnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doprnt.c')
-rw-r--r--src/doprnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doprnt.c b/src/doprnt.c
index d2abc119912..5ca3ea89be6 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -329,7 +329,7 @@ doprnt (char *buffer, register size_t bufsize, const char *format,
329 minlen = atoi (&fmtcpy[1]); 329 minlen = atoi (&fmtcpy[1]);
330 string = va_arg (ap, char *); 330 string = va_arg (ap, char *);
331 tem = strlen (string); 331 tem = strlen (string);
332 if (tem > MOST_POSITIVE_FIXNUM) 332 if (tem > STRING_BYTES_MAX)
333 error ("String for %%s or %%S format is too long"); 333 error ("String for %%s or %%S format is too long");
334 width = strwidth (string, tem); 334 width = strwidth (string, tem);
335 goto doit1; 335 goto doit1;
@@ -338,7 +338,7 @@ doprnt (char *buffer, register size_t bufsize, const char *format,
338 doit: 338 doit:
339 /* Coming here means STRING contains ASCII only. */ 339 /* Coming here means STRING contains ASCII only. */
340 tem = strlen (string); 340 tem = strlen (string);
341 if (tem > MOST_POSITIVE_FIXNUM) 341 if (tem > STRING_BYTES_MAX)
342 error ("Format width or precision too large"); 342 error ("Format width or precision too large");
343 width = tem; 343 width = tem;
344 doit1: 344 doit1: