fix: null termnination on file buffer
This commit is contained in:
2
test.c
2
test.c
@@ -60,7 +60,7 @@ int main(void)
|
||||
memset(content,0,neededSize);
|
||||
if((ret=getFile("config.cfg",&content,neededSize,&neededSize))==NO_ERROR)
|
||||
{
|
||||
printf("Sucessfull read file into buffer:%s\n---\n",content);
|
||||
printf("Sucessfull read file into buffer:%s|\n---\n",content);
|
||||
}
|
||||
else {
|
||||
printf("Error on getFile:%d\n",ret);
|
||||
|
||||
Reference in New Issue
Block a user