# HG changeset patch # User Adam Fritzler # Date 1106613193 0 # Node ID 5364929fad9bbba96c132b97e12524fc3b202961 # Parent b08a37897395278a96d9352e303aff4962733584 [gaim-migrate @ 11905] I"m watching you. committer: Tailor Script diff -r b08a37897395 -r 5364929fad9b plugins/gaim-remote/remote-socket.c --- a/plugins/gaim-remote/remote-socket.c Mon Jan 24 23:43:14 2005 +0000 +++ b/plugins/gaim-remote/remote-socket.c Tue Jan 25 00:33:13 2005 +0000 @@ -126,17 +126,17 @@ GaimRemotePacket *p = g_new0(GaimRemotePacket, 1); char *data = NULL; - if (!(read(fd, &p->type, sizeof(p->type)))) { + if ((read(fd, &p->type, sizeof(p->type))) != sizeof(p->type)) { g_free(p); return NULL; } - if (!(read(fd, &p->subtype, sizeof(p->subtype)))) { + if ((read(fd, &p->subtype, sizeof(p->subtype))) != sizeof(p->subtype)) { g_free(p); return NULL; } - if (!(read(fd, &p->length, sizeof(p->length)))) { + if ((read(fd, &p->length, sizeof(p->length))) != sizeof(p->length)) { g_free(p); return NULL; } @@ -144,7 +144,7 @@ if (p->length) { data = g_malloc(p->length); - if (!(read(fd, data, p->length))) { + if ((read(fd, data, p->length)) != p->length) { g_free(p); return NULL; }