Commit 05df6f6e authored by Burlen Loring's avatar Burlen Loring

fix a warning

parent 6235032d
......@@ -309,7 +309,7 @@ static int parse_args(int argc, char **argv)
#ifdef ENABLE_SENSEI
case('f'):
config_file = (char*)malloc(strlen(optarg) + 1);
strncpy(config_file, optarg, strlen(optarg) + 1);
strcpy(config_file, optarg);
break;
#else
case('b'):
......
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