diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fortran/options.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 9eed0e9..535840c 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,9 @@ 2004-05-16 Paul Brook <paul@codesourcery.com> + * options.c (gfc_handle_module_path_options): Fix buffer overrun. + +2004-05-16 Paul Brook <paul@codesourcery.com> + * arith.c (gfc_range_check): Fix logic error. 2004-05-16 Steve Kargl <sgk@troutmask.apl.washington.edu> diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 5fb8740..f0135bd 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -155,7 +155,7 @@ gfc_handle_module_path_options (const char *arg) exit (3); } - gfc_option.module_dir = (char *) gfc_getmem (strlen (arg)); + gfc_option.module_dir = (char *) gfc_getmem (strlen (arg) + 2); strcpy (gfc_option.module_dir, arg); strcat (gfc_option.module_dir, "/"); } |