LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File blender-strncat.patch of Package blender (Project graphics:rendering)

--- extern/qhull/src/global.c
+++ extern/qhull/src/global.c
@@ -526,7 +526,7 @@
 
   if (command != &qh qhull_command[0]) {
     *qh qhull_command= '\0';
-    strncat( qh qhull_command, command, sizeof( qh qhull_command));
+    strncat( qh qhull_command, command, sizeof( qh qhull_command) - 1);
   }
   while (*s && !isspace(*s))  /* skip program name */
     s++;