mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity 158147 test ping sprintf bounds
Well, just in the test app arg processing, but yes... Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
0fba8e6ef8
commit
0b85a64bf0
1 changed files with 2 additions and 1 deletions
|
@ -450,7 +450,8 @@ int main(int argc, char **argv)
|
|||
/* create client websockets using dumb increment protocol */
|
||||
|
||||
address = argv[optind];
|
||||
sprintf(ads_port, "%s:%u", address, port & 65535);
|
||||
snprintf(ads_port, sizeof(ads_port), "%s:%u",
|
||||
address, port & 65535);
|
||||
lwsl_notice("Connecting to %s...\n", ads_port);
|
||||
memset(&i, 0, sizeof(i));
|
||||
i.context = context;
|
||||
|
|
Loading…
Add table
Reference in a new issue