diff options
| author | Karl Heuer | 1994-04-07 02:46:12 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-07 02:46:12 +0000 |
| commit | ee0c28e3433289ab5bfb0e9daa950cc388b26712 (patch) | |
| tree | 7e463d9ed1d055a0684e09c7ddca7ffa63ebde7f /src | |
| parent | 6076455260dbb6e2bcdfe15f79ea8f9707047a54 (diff) | |
| download | emacs-ee0c28e3433289ab5bfb0e9daa950cc388b26712.tar.gz emacs-ee0c28e3433289ab5bfb0e9daa950cc388b26712.zip | |
(doprnt): Reword confusing error message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doprnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doprnt.c b/src/doprnt.c index 303846124f4..13fa047dcbe 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -122,7 +122,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args) | |||
| 122 | case 'o': | 122 | case 'o': |
| 123 | case 'x': | 123 | case 'x': |
| 124 | if (cnt == nargs) | 124 | if (cnt == nargs) |
| 125 | error ("Format string wants too many arguments"); | 125 | error ("not enough arguments for format string"); |
| 126 | sprintf (sprintf_buffer, fmtcpy, args[cnt++]); | 126 | sprintf (sprintf_buffer, fmtcpy, args[cnt++]); |
| 127 | /* Now copy into final output, truncating as nec. */ | 127 | /* Now copy into final output, truncating as nec. */ |
| 128 | string = sprintf_buffer; | 128 | string = sprintf_buffer; |
| @@ -134,7 +134,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args) | |||
| 134 | { | 134 | { |
| 135 | union { double d; char *half[2]; } u; | 135 | union { double d; char *half[2]; } u; |
| 136 | if (cnt + 1 == nargs) | 136 | if (cnt + 1 == nargs) |
| 137 | error ("Format string wants too many arguments"); | 137 | error ("not enough arguments for format string"); |
| 138 | u.half[0] = args[cnt++]; | 138 | u.half[0] = args[cnt++]; |
| 139 | u.half[1] = args[cnt++]; | 139 | u.half[1] = args[cnt++]; |
| 140 | sprintf (sprintf_buffer, fmtcpy, u.d); | 140 | sprintf (sprintf_buffer, fmtcpy, u.d); |
| @@ -147,7 +147,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args) | |||
| 147 | string[-1] = 's'; | 147 | string[-1] = 's'; |
| 148 | case 's': | 148 | case 's': |
| 149 | if (cnt == nargs) | 149 | if (cnt == nargs) |
| 150 | error ("Format string wants too many arguments"); | 150 | error ("not enough arguments for format string"); |
| 151 | string = args[cnt++]; | 151 | string = args[cnt++]; |
| 152 | if (fmtcpy[1] != 's') | 152 | if (fmtcpy[1] != 's') |
| 153 | minlen = atoi (&fmtcpy[1]); | 153 | minlen = atoi (&fmtcpy[1]); |
| @@ -183,7 +183,7 @@ doprnt (buffer, bufsize, format, format_end, nargs, args) | |||
| 183 | 183 | ||
| 184 | case 'c': | 184 | case 'c': |
| 185 | if (cnt == nargs) | 185 | if (cnt == nargs) |
| 186 | error ("Format string wants too many arguments"); | 186 | error ("not enough arguments for format string"); |
| 187 | *bufptr++ = (int) args[cnt++]; | 187 | *bufptr++ = (int) args[cnt++]; |
| 188 | bufsize--; | 188 | bufsize--; |
| 189 | continue; | 189 | continue; |