File cadaver-0.23.2-strncat.patch of Package cadaver

--- src/edit.c
+++ src/edit.c
@@ -138,7 +138,7 @@
      * so the editor can have a stab at the content-type. */
     pnt = strrchr(real_remote, '.');
     if (pnt != NULL && strchr(pnt, '/') == NULL) {
-	strncat(fname, pnt, PATH_MAX);
+	strncat(fname, pnt, PATH_MAX-strlen(fname)-1);
 	fname[PATH_MAX-1] = '\0';
     }