Commit 5146f22b authored by Miller Puckette's avatar Miller Puckette
Browse files

update version number and add string overflow prot

parent 57376613
......@@ -11,7 +11,7 @@ extern "C" {
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 41
#define PD_BUGFIX_VERSION 0
#define PD_TEST_VERSION "test08"
#define PD_TEST_VERSION "test09"
/* old name for "MSW" flag -- we have to take it for the sake of many old
"nmakefiles" for externs, which will define NT and not MSW */
......
......@@ -822,14 +822,16 @@ int sys_argparse(int argc, char **argv)
else if (!strcmp(*argv, "-schedlib"))
{
sys_externalschedlib = 1;
strcpy(sys_externalschedlibname, argv[1]);
strncpy(sys_externalschedlibname, argv[1],
sizeof(sys_externalschedlibname) - 1);
argv += 2;
argc -= 2;
}
else if (!strcmp(*argv, "-extraflags"))
{
sys_extraflags = 1;
strcpy(sys_extraflagsstring, argv[1]);
strncpy(sys_extraflagsstring, argv[1],
sizeof(sys_extraflagsstring) - 1);
argv += 2;
argc -= 2;
}
......
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