openbsd-ports/graphics/p5-Image-EXIF/patches/patch-exifutil_c
robert cf266799b2 Import of p5-Image-EXIF-0.98.6; from Dan Weeks <dan@danimal.org>
The Image::Exif Perl extension allows the user to use the
libexif library to extract EXIF information from JPEG
files created by digital cameras.

ok naddy@
2004-05-17 05:09:52 +00:00

13 lines
509 B
Plaintext

$OpenBSD: patch-exifutil_c,v 1.1.1.1 2004/05/17 05:09:52 robert Exp $
--- exifutil.c.orig 2004-05-03 11:34:15.000000000 -0700
+++ exifutil.c 2004-05-03 11:35:12.000000000 -0700
@@ -165,7 +165,7 @@ finddescr(struct descrip *table, u_int16
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);
}