fixed memory-lead (sizeof(LCDd.conf))

This commit is contained in:
boercher
2005-08-19 23:14:57 +00:00
parent 8c3f36f890
commit 78a4e731db
+4 -1
View File
@@ -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;
}