aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/closure.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/misc/closure.c')
-rw-r--r--ext/misc/closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/closure.c b/ext/misc/closure.c
index 2f83198a7..db9b2b739 100644
--- a/ext/misc/closure.c
+++ b/ext/misc/closure.c
@@ -431,7 +431,7 @@ static char *closureDequote(const char *zIn){
char q = zIn[0]; /* Quote character (if any ) */
if( q!='[' && q!= '\'' && q!='"' && q!='`' ){
- memcpy(zOut, zIn, nIn+1);
+ memcpy(zOut, zIn, (size_t)(nIn+1));
}else{
int iOut = 0; /* Index of next byte to write to output */
int iIn; /* Index of next byte to read from input */