Commit fc577d5c fc577d5c027331fd35b3a966286b59a0cba9c393 by Sergey Poznyakoff

(_memory_write): Minor fix

1 parent 0f034b80
...@@ -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)
......