File syslog-ng-2.0.9-strncat.dif of Package syslog-ng

--- src/afuser.c
+++ src/afuser.c	2008/04/30 08:36:54
@@ -86,7 +86,7 @@
             strcpy(line, "/dev/");
           else
             line[0] = 0;
-          strncat(line, ut->ut_line, sizeof(line));
+          strncat(line, ut->ut_line, sizeof(line)-strlen(line)-1);
           fd = open(line, O_NOCTTY | O_APPEND | O_WRONLY);
           if (fd != -1) 
             {
openSUSE Build Service is sponsored by