fix: null termnination on file buffer

This commit is contained in:
jonathan santis
2025-05-19 14:56:34 +02:00
parent ff1b01e4be
commit d3e0c75f6c
4 changed files with 104 additions and 12 deletions

2
test.c
View File

@@ -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);