fixed memory-lead (sizeof(LCDd.conf))
This commit is contained in:
1 parent
8c3f36f890
commit
78a4e731db
1 file changed
+4
-1
+4
-1
@@ -551,7 +551,10 @@ key * add_key( section * s, char * keyname, char * value )
|
||||
}
|
||||
|
||||
char get_next_char_f(buffile * f) {
|
||||
return ((char) buffile_read(f, 1)[0]);
|
||||
char * buf = buffile_read(f, 1);
|
||||
char c = buf[0];
|
||||
free(buf);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user