diff options
author | 2!tgraf <2!tgraf> | 2005-01-18 00:17:27 +0000 |
---|---|---|
committer | 2!tgraf <2!tgraf> | 2005-01-18 00:17:27 +0000 |
commit | 6107d297aca301a0e2fdefce63a451131a98d66f (patch) | |
tree | 233711516a8fd3461ee0cc0c98edbad25898d67c /tc | |
parent | 7a0503626bbe72a0405ea3eefd5db9eb22699aef (diff) |
Avoid using magic number
(Logical change 1.126)
Diffstat (limited to 'tc')
-rw-r--r-- | tc/m_pedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/m_pedit.c b/tc/m_pedit.c index 704bb04e..f3cec6fe 100644 --- a/tc/m_pedit.c +++ b/tc/m_pedit.c @@ -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; } |