{
int fd;
- memcpy(base, suffix, strlen(suffix)+1);
+ strcpy(base, suffix);
fd = open(file, O_RDONLY);
if (fd!=-1) {
*limit = readValue(fd, file);
}
while (1) {
- int c = getopt_long(argc, argv, "MSHndhvac:", CMDLINE_OPTIONS, 0);
+ int c = getopt_long(argc, argv, "+MSHndhvac:", CMDLINE_OPTIONS, 0);
if (c==-1) break;
if (2048<=c && c<2048+32) {
if (ctx==VC_NOCTX)
ctx = Evc_get_task_xid(0);
- readFromDir(limits, &lim_mask, dir, missing_ok);
+ if (dir)
+ readFromDir(limits, &lim_mask, dir, missing_ok);
+
setLimits(ctx, limits, lim_mask);
if (show_all) showAll(ctx);