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:
parent
558baa830e
commit
ca3926bb9d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user