Remove unused patch.

This commit is contained in:
Andreas Schneider 2014-01-10 11:33:29 +01:00
parent 52abde27e6
commit ce021ed310

View File

@ -1,22 +0,0 @@
Index: iniparser/src/iniparser.c
===================================================================
--- iniparser.orig/src/iniparser.c
+++ iniparser/src/iniparser.c
@@ -633,7 +633,7 @@ dictionary * iniparser_load(const char *
char line [ASCIILINESZ+1] ;
char section [ASCIILINESZ+1] ;
char key [ASCIILINESZ+1] ;
- char tmp [ASCIILINESZ+1] ;
+ char tmp [(ASCIILINESZ * 2) + 1] ;
char val [ASCIILINESZ+1] ;
int last=0 ;
@@ -699,7 +699,7 @@ dictionary * iniparser_load(const char *
break ;
case LINE_VALUE:
- sprintf(tmp, "%s:%s", section, key);
+ snprintf(tmp, sizeof(tmp), "%s:%s", section, key);
errs = dictionary_set(dict, tmp, val) ;
break ;