File tuxmath-bufferoverflowstrncat.patch of Package tuxmath
--- src/server.c.orig 2011-06-12 22:05:01.693984108 +0200
+++ src/server.c 2011-06-12 22:09:57.224160453 +0200
@@ -237,11 +237,11 @@
snprintf(buf, 256, "tuxmathserver ");
for(i = 1; i < argc; i++)
{
- strncat(buf, argv[i], 256);
- strncat(buf, " ", 256);
+ strncat(buf, argv[i], 255);
+ strncat(buf, " ", 255);
}
/* Add '&' to make it non-blocking: */
- strncat(buf, "&", 256);
+ strncat(buf, "&", 255);
DEBUGMSG(debug_lan, "RunServer_prog() - launching standalone "
"tuxmathserver program with \"system(%s)\"\n", buf);