wok view frogatto/stuff/patches/server.cpp-1.3.1 @ rev 21821

syslinux/kbd: check kbd malloc pointer (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 12:03:28 2019 +0200 (2019-08-25)
parents
children
line source
1 --- server.cpp.orig 2019-06-28 17:48:43.024758899 +0100
2 +++ server.cpp 2019-06-28 17:47:35.522368962 +0100
3 @@ -174,7 +174,7 @@ private:
5 void handle_udp_receive(udp_endpoint_ptr endpoint, const boost::system::error_code& error, size_t len)
6 {
7 - fprintf(stderr, "RECEIVED UDP PACKET: %lu\n", len);
8 + fprintf(stderr, "RECEIVED UDP PACKET: %u\n", len);
9 if(len >= 5) {
10 uint32_t id;
11 memcpy(&id, &udp_buf_[1], 4);