diff options
| author | Miles Bader | 2004-08-03 00:03:00 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-08-03 00:03:00 +0000 |
| commit | ac887bc2843e28a189afa7a1f83ca48157a5e750 (patch) | |
| tree | 0c70dd197bc1fb64bc2edbfc8a6dcdec9cc8cf1b /src/editfns.c | |
| parent | 54685a78a73fcf2f53fd0e8a7a3c7478b8650f1b (diff) | |
| parent | ed5c373cab5483317a8b6fca3d8d4d52432934fc (diff) | |
| download | emacs-ac887bc2843e28a189afa7a1f83ca48157a5e750.tar.gz emacs-ac887bc2843e28a189afa7a1f83ca48157a5e750.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-27
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-471
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-478
Update from CVS
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 2782a966bf0..7fdd5598bf8 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3410,6 +3410,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3410 | /* Piggyback on this loop to initialize precision[N]. */ | 3410 | /* Piggyback on this loop to initialize precision[N]. */ |
| 3411 | precision[n] = -1; | 3411 | precision[n] = -1; |
| 3412 | } | 3412 | } |
| 3413 | precision[nargs] = -1; | ||
| 3413 | 3414 | ||
| 3414 | CHECK_STRING (args[0]); | 3415 | CHECK_STRING (args[0]); |
| 3415 | /* We may have to change "%S" to "%s". */ | 3416 | /* We may have to change "%S" to "%s". */ |
| @@ -3433,11 +3434,11 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3433 | 3434 | ||
| 3434 | /* Allocate the info and discarded tables. */ | 3435 | /* Allocate the info and discarded tables. */ |
| 3435 | { | 3436 | { |
| 3436 | int nbytes = nargs * sizeof *info; | 3437 | int nbytes = (nargs+1) * sizeof *info; |
| 3437 | int i; | 3438 | int i; |
| 3438 | info = (struct info *) alloca (nbytes); | 3439 | info = (struct info *) alloca (nbytes); |
| 3439 | bzero (info, nbytes); | 3440 | bzero (info, nbytes); |
| 3440 | for (i = 0; i < nargs; i++) | 3441 | for (i = 0; i <= nargs; i++) |
| 3441 | info[i].start = -1; | 3442 | info[i].start = -1; |
| 3442 | discarded = (char *) alloca (SBYTES (args[0])); | 3443 | discarded = (char *) alloca (SBYTES (args[0])); |
| 3443 | bzero (discarded, SBYTES (args[0])); | 3444 | bzero (discarded, SBYTES (args[0])); |