diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/lists.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 4f57ca73..45a4874b 100644 --- a/src/ngircd/lists.c +++ b/src/ngircd/lists.c @@ -149,7 +149,8 @@ Lists_Add(struct list_head *h, const char *Mask, time_t ValidUntil, if (Reason) { newelem->reason = malloc(strlen(Reason) + 1); if (newelem->reason) - strlcpy(newelem->reason, Reason, strlen(Reason) + 1); + strlcpy(newelem->reason, Reason, + sizeof(newelem->reason)); else Log(LOG_EMERG, "Can't allocate memory for new list reason text!"); |