summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author2!tgraf <2!tgraf>2005-01-18 00:17:27 +0000
committer2!tgraf <2!tgraf>2005-01-18 00:17:27 +0000
commit6107d297aca301a0e2fdefce63a451131a98d66f (patch)
tree233711516a8fd3461ee0cc0c98edbad25898d67c
parent7a0503626bbe72a0405ea3eefd5db9eb22699aef (diff)
Avoid using magic number
(Logical change 1.126)
-rw-r--r--tc/m_pedit.c2
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;
}