SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
11
graphics/p5-Image-EXIF/patches/patch-exifutil_c
Normal file
11
graphics/p5-Image-EXIF/patches/patch-exifutil_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- exifutil.c.orig Fri May 11 19:03:30 2012
|
||||
+++ exifutil.c Sat Jul 12 19:34:34 2014
|
||||
@@ -219,7 +219,7 @@ finddescr(struct descrip *table, u_int16_t val)
|
||||
for (i = 0; table[i].val != -1 && table[i].val != val; i++);
|
||||
if (!(c = (char *)malloc(strlen(table[i].descr) + 1)))
|
||||
exifdie((const char *)strerror(errno));
|
||||
- strcpy(c, table[i].descr);
|
||||
+ strlcpy(c, table[i].descr, (strlen(table[i].descr) + 1));
|
||||
return (c);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue