From 4623a269301c9a28537800e27f5323878f65442d Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 26 Jun 2007 04:36:46 +0200 Subject: [PATCH] make sure the returned string is zero terminated --- libexif/exif-entry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libexif/exif-entry.c b/libexif/exif-entry.c index 0838970..f1b85fb 100644 --- a/libexif/exif-entry.c +++ b/libexif/exif-entry.c @@ -1095,6 +1095,7 @@ exif_entry_get_value (ExifEntry *e, char *val, unsigned int maxlen) } } + val[maxlen-1] = '\0'; /* make sure the returned string is zero terminated */ return val; } -- 2.7.4