Avoid using magic number

(Logical change 1.126)
This commit is contained in:
2!tgraf 2005-01-18 00:17:27 +00:00
parent 7a0503626b
commit 6107d297ac
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ noexist:
p = malloc(sizeof(*p));
if (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;
goto reg;
}