diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index bdc78c2d718..3b6969b0c28 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2178,7 +2178,7 @@ slurp_file (file, size) | |||
| 2178 | 2178 | ||
| 2179 | if (stat (file, &st) == 0 | 2179 | if (stat (file, &st) == 0 |
| 2180 | && (fp = fopen (file, "rb")) != NULL | 2180 | && (fp = fopen (file, "rb")) != NULL |
| 2181 | && (buf = (char *) xmalloc (st.st_size), | 2181 | && (buf = (unsigned char *) xmalloc (st.st_size), |
| 2182 | fread (buf, 1, st.st_size, fp) == st.st_size)) | 2182 | fread (buf, 1, st.st_size, fp) == st.st_size)) |
| 2183 | { | 2183 | { |
| 2184 | *size = st.st_size; | 2184 | *size = st.st_size; |
| @@ -3029,7 +3029,7 @@ xbm_read_bitmap_data (contents, end, width, height, data) | |||
| 3029 | 3029 | ||
| 3030 | bytes_per_line = (*width + 7) / 8 + padding_p; | 3030 | bytes_per_line = (*width + 7) / 8 + padding_p; |
| 3031 | nbytes = bytes_per_line * *height; | 3031 | nbytes = bytes_per_line * *height; |
| 3032 | p = *data = (char *) xmalloc (nbytes); | 3032 | p = *data = (unsigned char *) xmalloc (nbytes); |
| 3033 | 3033 | ||
| 3034 | if (v10) | 3034 | if (v10) |
| 3035 | { | 3035 | { |