examples/websocket: fixes buffer overflow
authorJunyeon LEE <junyeon2.lee@samsung.com>
Mon, 5 Jun 2017 11:36:46 +0000 (20:36 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 11:09:54 +0000 (20:09 +0900)
commitab1d19a285b938f193f5958ffe4fb3186aada1a4
tree38ddbd511d6aa28cdd92fd28623a6112e68f484f
parent454d0d23d96f8a0cbc7358063328b89c68f29064
examples/websocket: fixes buffer overflow

This commit fixes websocket client buffer overflow problem.
When user set the buffer size to 16, sprint() in websocket client
application will copy the test data more than 16 and it can make
buffer overflow.

Change-Id: Idd3084354be2a67f8d3ac092edf4258c198c94d9
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
apps/examples/websocket/websocket_main.c