Fix strncpy for -C option

This commit is contained in:
Martin Duquesnoy 2012-03-13 15:01:34 +01:00
parent 154571b65b
commit f0bf12770e

View File

@ -598,7 +598,7 @@ main(int argc, char **argv)
break;
case 'C':
strncpy(path, optarg, sizeof(W->confpath));
strncpy(path, optarg, MAX_PATH_LEN);
break;
}
}