summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gsfunc.c')
-rw-r--r--base/gsfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gsfunc.c b/base/gsfunc.c
index 9844b8d7..c45b652e 100644
--- a/base/gsfunc.c
+++ b/base/gsfunc.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -127,7 +127,7 @@ fn_copy_values(const void *pvalues, int count, int size, gs_memory_t *mem)
void *values = gs_alloc_byte_array(mem, count, size, "fn_copy_values");
if (values)
- memcpy(values, pvalues, count * size);
+ memcpy(values, pvalues, (size_t)count * size);
return values;
} else
return 0; /* caller must check */