parent
7a0503626b
commit
6107d297ac
|
|
@ -106,7 +106,7 @@ noexist:
|
||||||
p = malloc(sizeof(*p));
|
p = malloc(sizeof(*p));
|
||||||
if (p) {
|
if (p) {
|
||||||
memset(p, 0, sizeof(*p));
|
memset(p, 0, sizeof(*p));
|
||||||
strncpy(p->id, str, 15);
|
strncpy(p->id, str, sizeof(p->id)-1);
|
||||||
p->parse_peopt = pedit_parse_nopopt;
|
p->parse_peopt = pedit_parse_nopopt;
|
||||||
goto reg;
|
goto reg;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue