Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
coshcage authored May 5, 2024
1 parent e35dda5 commit 838f275
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sixmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Name: sixmem.c
* Description: SI external memory function.
* Author: cosh.cage#hotmail.com
* File ID: 0714231200H0505240225L00383
* File ID: 0714231200H0505240225L00389
* License: GPLv2.
*/
#include "sixmem.h"
Expand Down Expand Up @@ -32,7 +32,13 @@
*/
void _siReadString(char * buf, FILE * fp)
{
fgets(buf, BUFSIZ - 1, fp);
size_t i = 0;
while ((i < BUFSIZ - 1) && (*buf = fgetc(fp)))
{
++buf;
++i;
}
buf[i] = '\0';
}

/* Attention: This Is An Internal Function. No Interface for Library Users.
Expand Down

0 comments on commit 838f275

Please sign in to comment.