[Title] fix the untrusted value as argument. (various)
[platform/adaptation/emulator/vmodem-daemon-emulator.git] / vmodem / server / client.c
index f7eb2cb..1701b3a 100644 (file)
@@ -1450,7 +1450,7 @@ static int client_callback(PhoneServer * ps, int fd, EloopCondition cond, void *
 
        TAPIMessageInit(&packet);
 
-       rc = ReadBytes(clientfd, &packet, 4);
+       rc = ReadPacketBytes4(clientfd, &packet);
 
        if  (rc <= 0)
        {