aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 4a5e4b0..6cf0285 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -326,12 +326,9 @@ pprintf_noformat(int p, char *format,...)
va_list ap;
va_start(ap, format);
- retval = vsprintf(tmp, format, ap);
+ retval = vsnprintf(tmp, sizeof tmp, format, ap);
va_end(ap);
- if (strlen(tmp) > 10 * MAX_LINE_SIZE)
- fprintf(stderr, "FICS: %s: buffer overflow\n", __func__);
-
net_send_string(parray[p].socket, tmp, 0);
return retval;
}