diff options
| author | 2008-12-20 07:39:19 +0000 | |
|---|---|---|
| committer | 2008-12-20 07:39:19 +0000 | |
| commit | f32fa3b2e65f895baa82560ded11d5f36f3c4baa (patch) | |
| tree | b630debca38f5408a1d74b395877b6cb64a00e02 /src/lib | |
| parent | 446f13607fbcdbf381d42fb498b12bbfdb0de74f (diff) | |
02745: all sets using autosave: Games using autosave segfault on startup
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util/corefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/corefile.c b/src/lib/util/corefile.c index 1a4b5653981..eb0773147bb 100644 --- a/src/lib/util/corefile.c +++ b/src/lib/util/corefile.c @@ -287,7 +287,7 @@ file_error core_fcompress(core_file *file, int level) file->zdata = malloc(sizeof(*file->zdata)); if (file->zdata == NULL) return FILERR_OUT_OF_MEMORY; - memset(file->zdata, 0, sizeof(file->zdata)); + memset(file->zdata, 0, sizeof(*file->zdata)); /* initialize the stream and compressor */ if ((file->openflags & OPEN_FLAG_WRITE) != 0) |
