/svarcom/trunk/command.c |
---|
57,7 → 57,7 |
struct config { |
int locate; |
int install; |
int envsiz; |
unsigned short envsiz; |
} cfg; |
70,11 → 70,12 |
cfg->locate = 1; |
} |
if (strstartswith(argv[i], "/e:") == 0) { |
cfg->envsiz = atoi(argv[i]+3); |
if (cfg->envsiz < 64) cfg->envsiz = 0; |
if ((atouns(&(cfg->envsiz), argv[i] + 3) != 0) || (cfg->envsiz < 64)) { |
cfg->envsiz = 0; |
} |
} |
} |
} |
static void buildprompt(char *s, unsigned short envseg) { |