File xsupplicant-strncat.patch of Package xsupplicant

--- lib/libxsupgui/xsupgui.c
+++ lib/libxsupgui/xsupgui.c
@@ -362,7 +362,7 @@
 
   strncpy(fullpidfilename, XSUP_SOCKET, 255);
   strncat(fullpidfilename, ".", 1);
-  strncat(fullpidfilename, intname, 255);
+  strncat(fullpidfilename, intname, sizeof(fullpidfilename)-strlen(fullpidfilename)-1);
 
   err = stat(fullpidfilename, &mystats);
   if (err == 0)