File qiv-2.1-pre12.patch of Package qiv
--- utils.c.orig 2007-12-12 15:49:38.000000000 +0100
+++ utils.c 2007-12-12 15:49:53.000000000 +0100
@@ -53,8 +53,8 @@
/* move file to fullpath/TRASH_DIR/filename */
snprintf(trashfile, sizeof trashfile, "%s/%s/%s", path_result, TRASH_DIR, ptr+1);
- strncat(path_result, "/", PATH_MAX);
- strncat(path_result, ptr + 1, PATH_MAX);
+ strncat(path_result, "/", PATH_MAX-strlen(path_result)-1);
+ strncat(path_result, ptr + 1, PATH_MAX-strlen(path_result)-1);
*ptr = '/';
}