Commit 629ceb93 by Paul Brook Committed by Paul Brook

* options.c (gfc_handle_module_path_options): Fix buffer overrun.

From-SVN: r81925
parent 6d3e9d84
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>
......
......@@ -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, "/");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment