Mercurial > pidgin.yaz
changeset 10541:5364929fad9b
[gaim-migrate @ 11905]
I"m watching you.
committer: Tailor Script <tailor@pidgin.im>
author | Adam Fritzler <mid@auk.cx> |
---|---|
date | Tue, 25 Jan 2005 00:33:13 +0000 |
parents | b08a37897395 |
children | def1c69ae8af |
files | plugins/gaim-remote/remote-socket.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }