1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ecmascript] No warning

This commit is contained in:
Witold Filipczyk 2019-11-15 16:40:29 +01:00
parent 558baa830e
commit ca3926bb9d

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 {