Fix `rf` string-offsetting bug.

This commit is contained in:
Sage Vaillancourt 2022-03-29 16:57:40 -04:00 committed by Sage Vaillancourt
parent 32a2254da9
commit 52c928846d
1 changed files with 0 additions and 1 deletions

View File

@ -458,7 +458,6 @@ char* readFileToString(FILE* input)
char* prev = string;
capacity *= 2;
string = malloc(sizeof(char) * capacity);
string += 1;
memcpy(string, prev, sizeof(char) * (capacity / 2));
free(prev);
}