summaryrefslogtreecommitdiff
path: root/graphics/showimg/patches/patch-ab
blob: f2bd832620dce81a3794926bb7e8d8db95be6325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ab,v 1.1 2011/01/29 22:00:59 markd Exp $

fix build with gcc4.5

--- showimg/showimg/misc/exif.cpp.orig	2006-01-07 08:47:58.000000000 +0000
+++ showimg/showimg/misc/exif.cpp
@@ -409,7 +409,7 @@ static void RelativeName(char * OutFileN
     // If the filename contains substring "&i", then substitute the
     // filename for that.  This gives flexibility in terms of processing
     // multiple files at a time.
-    char * Subst;
+    const char * Subst;
     Subst = strstr(NamePattern, "&i");
     if (Subst){
         strncpy(OutFileName, NamePattern, Subst-NamePattern);