From: Adrian Reber <adrian@lisas.de>
Subject: fix compiler warning and possible buffer overflow
Description: Patch from the Fedora jhead package maintainer
Origin: vendor, https://src.fedoraproject.org/rpms/jhead/blob/master/f/35_compiler_warning_truncate

--- a/jhead.c
+++ b/jhead.c
@@ -650,7 +650,7 @@
 
     AddLetter = isdigit(NewBaseName[strlen(NewBaseName)-1]);
     for (a=0;;a++){
-        char NewName[PATH_MAX+10];
+        char NewName[(PATH_MAX*2)+10];
         char NameExtra[3];
         struct stat dummy;
 
