diff options
Diffstat (limited to 'libaf/af_export.c')
-rw-r--r-- | libaf/af_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libaf/af_export.c b/libaf/af_export.c index c2eff53476..dd20777c0c 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -135,7 +135,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) if(s->filename) free(s->filename); - s->filename = calloc(i + 1, sizeof(char)); + s->filename = calloc(i + 1, 1); memcpy(s->filename, str, i); s->filename[i] = 0; |