From 52c928846d2e78199c0a68e5db5dba393283dc9f Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Tue, 29 Mar 2022 16:57:40 -0400 Subject: [PATCH] Fix `rf` string-offsetting bug. --- src/plfunc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plfunc.c b/src/plfunc.c index 9f50306..af9f055 100644 --- a/src/plfunc.c +++ b/src/plfunc.c @@ -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); }