vp-build/srcpkgs/pilot-link/patches/fix-strncat_overrun.patch

12 lines
396 B
Diff

--- src/pilot-memos.c 2009-06-04 15:26:19.000000000 +0200
+++ src/pilot-memos.c 2016-12-20 15:20:12.137836228 +0100
@@ -113,7 +113,7 @@
mkdir(dirname, 0700);
/* Create a directory for the category */
- strncat(pathbuffer, dirname, MAXDIRNAMELEN);
+ strncat(pathbuffer, dirname, MAXDIRNAMELEN-2);
strncat(pathbuffer, "/", 1);
/* Should make sure category doesn't have slashes in it */