diff options
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 78f03d2..4cba896 100644 --- a/src/utils.c +++ b/src/utils.c @@ -120,7 +120,7 @@ xfwrite(const void *ptr, size_t size, FILE *stream) void write_int(uint64_t value, size_t len, FILE *to) { - char buf[len]; + char buf[sizeof(value)]; size_t i; for (i = 0; i < len; i++) |