diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/ioutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c index 51f58f0f..8fdbb2b6 100644 --- a/src/helper/ioutil.c +++ b/src/helper/ioutil.c @@ -141,7 +141,7 @@ int loadFile(const char *fileName, void **data, size_t *len) // 0-byte after buffer (not included in *len) serves as a sentinel char *buf = (char *)*data; - buf[*len = 0; + buf[*len] = 0; return ERROR_OK; } |