OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* options.c (gfc_handle_module_path_options): Fix buffer overrun.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
fortran
/
options.c
diff --git
a/gcc/fortran/options.c
b/gcc/fortran/options.c
index
5fb8740
..
f0135bd
100644
(file)
--- 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, "/");
}