Commit 6543f49b authored by Julien Nabet's avatar Julien Nabet
Browse files

cppcheck: fix 2 reports

[clientgui/browser.cpp:375]: (error) Width 4096 given in format string (no. 1) is larger than destination buffer 'cookie_value[4096]', use %4095s to prevent overflowing it.
[clientgui/browser.cpp:575]: (error) Width 4096 given in format string (no. 1) is larger than destination buffer 'cookie_value[4096]', use %4095s to prevent overflowing it.
parent 1e35f8d9
......@@ -372,7 +372,7 @@ static int find_site_cookie_mozilla_v3(
sscanf( argv[0], "%255s", host );
sscanf( argv[1], "%255s", cookie_name );
sscanf( argv[2], "%4096s", cookie_value );
sscanf( argv[2], "%4095s", cookie_value );
sscanf( argv[3],
#ifdef _WIN32
"%I64d",
......@@ -572,7 +572,7 @@ static int find_site_cookie_chrome(
sscanf( argv[0], "%255s", host );
sscanf( argv[1], "%255s", cookie_name );
sscanf( argv[2], "%4096s", cookie_value );
sscanf( argv[2], "%4095s", cookie_value );
sscanf( argv[3],
#ifdef _WIN32
"%I64d",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment