Here comes another buffer overflow. These time from makelogline() routine.
The patch below fixes it.

73, de Tom DL1JBE


--- src/makelogline.c.orig      2009-10-20 16:46:41.000000000 +0000
+++ src/makelogline.c   2009-10-20 16:47:49.000000000 +0000
@@ -387,9 +387,8 @@
        strcat (logline4, " ");
        }
 
-strcat  (logline4, "        " );
-
-logline4[80]='\0';       /* just in case... */
+       /* fill rest of line */
+       strncat (logline4, "        ",  80-strlen(logline4));
 
 return (0);
 }
-- 
"Do what is needful!"
Ursula LeGuin: Earthsea
--



_______________________________________________
Tlf-devel mailing list
Tlf-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tlf-devel

Reply via email to