1
0
Fork 0

[ecmascript] No warning

This commit is contained in:
Witold Filipczyk 2019-11-15 16:40:29 +01:00
parent 558baa830e
commit ca3926bb9d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ document_get_property_cookie(JSContext *ctx, JSHandleObject hobj, JSHandleId hid
if (cookies) {
static unsigned char cookiestr[1024];
strncpy(cookiestr, cookies->source, 1024);
strncpy(cookiestr, cookies->source, 1023);
done_string(cookies);
string_to_jsval(ctx, vp, cookiestr);
} else {