Mercurial > hg > xemacs-beta
changeset 3383:3583b965b1c5
[xemacs-hg @ 2006-05-07 14:20:33 by stephent]
Fix buffer overrun in extract_object_file_name.
author | stephent |
---|---|
date | Sun, 07 May 2006 14:20:36 +0000 |
parents | 6b7bd79fac38 |
children | 4b7189c86161 |
files | src/ChangeLog src/doc.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat May 06 21:51:54 2006 +0000 +++ b/src/ChangeLog Sun May 07 14:20:36 2006 +0000 @@ -1,3 +1,7 @@ +2006-05-02 Stephen J. Turnbull <stephen@xemacs.org> + + * doc.c (extract_object_file_name): Fix buffer overrun. + 2006-04-30 Stephen J. Turnbull <stephen@xemacs.org> Move geometry management from EmacsFrameResize to x_set_frame_size.
--- a/src/doc.c Sat May 06 21:51:54 2006 +0000 +++ b/src/doc.c Sun May 07 14:20:36 2006 +0000 @@ -47,7 +47,7 @@ Ibyte *name_nonreloc, Lisp_Object name_reloc, int standard_doc_file) { - Ibyte buf[DOC_MAX_FILENAME_LENGTH]; + Ibyte buf[DOC_MAX_FILENAME_LENGTH+1]; Ibyte *buffer = buf; int buffer_size = sizeof (buf), space_left; Ibyte *from, *to;