Mercurial > hg > xemacs-beta
diff src/doc.c @ 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 | 959746c534f6 |
children | 41c353ad2c74 |
line wrap: on
line diff
--- 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;