freebsd-ports/net-im/micq/files/patch-ab
Chris D. Faulhaber 086070ab85 - Update port to 0.4.6p1 (fixes remote buffer overflow)
- Add some additional buffer checks
2001-01-25 03:19:53 +00:00

12 lines
310 B
Plaintext

--- mreadline.c.orig Tue Jan 23 11:49:05 2001
+++ mreadline.c Wed Jan 24 22:01:31 2001
@@ -359,7 +359,7 @@
break;
}
}
- sprintf (s, "%s %s/", message_cmd,
+ snprintf (s, sizeof(s), "%s %s/", message_cmd,
tab_array[tab_pointer]);
clen = cpos = strlen (s);
R_undraw();