diff options
Diffstat (limited to 'lib/libpm.c')
-rw-r--r-- | lib/libpm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpm.c b/lib/libpm.c index a65a51a5..1ca7eba2 100644 --- a/lib/libpm.c +++ b/lib/libpm.c @@ -216,13 +216,12 @@ pm_error(const char format[], ...) { } -/* Variable-sized arrays. */ void * pm_allocrow(unsigned int const cols, unsigned int const size) { - char * itrow; + unsigned char * itrow; if (UINT_MAX / cols < size) pm_error("Arithmetic overflow multiplying %u by %u to get the " |