(_memory_write): Minor fix
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -103,7 +103,7 @@ _memory_write (stream_t stream, const char *iptr, size_t isize, | ... | @@ -103,7 +103,7 @@ _memory_write (stream_t stream, const char *iptr, size_t isize, |
103 | if (mfs->capacity < ((size_t)offset + isize)) | 103 | if (mfs->capacity < ((size_t)offset + isize)) |
104 | { | 104 | { |
105 | /* Realloc by fixed blocks of 128. */ | 105 | /* Realloc by fixed blocks of 128. */ |
106 | int newsize = MU_STREAM_MEMORY_BLOCKSIZE * | 106 | size_t newsize = MU_STREAM_MEMORY_BLOCKSIZE * |
107 | (((offset + isize)/MU_STREAM_MEMORY_BLOCKSIZE) + 1); | 107 | (((offset + isize)/MU_STREAM_MEMORY_BLOCKSIZE) + 1); |
108 | char *tmp = realloc (mfs->ptr, newsize); | 108 | char *tmp = realloc (mfs->ptr, newsize); |
109 | if (tmp == NULL) | 109 | if (tmp == NULL) | ... | ... |
-
Please register or sign in to post a comment