diff options
-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; } |