# HG changeset patch # User Eric Warmenhoven # Date 983680350 0 # Node ID b6fe5cab70d69278acefd4d2ec4a8e045d538674 # Parent 249a770bebd70d87985c806e37235b2db2884c25 [gaim-migrate @ 1543] whoops. i'm a moron. committer: Tailor Script diff -r 249a770bebd7 -r b6fe5cab70d6 src/toc.c --- a/src/toc.c Sun Mar 04 03:18:45 2001 +0000 +++ b/src/toc.c Sun Mar 04 04:32:30 2001 +0000 @@ -254,7 +254,7 @@ do { count += ret; ret = read(tdt->toc_fd, - buffer + sizeof(struct sflap_hdr) + count, ntohs(hdr->len)); + buffer + sizeof(struct sflap_hdr) + count, ntohs(hdr->len) - count); } while (count + ret < ntohs(hdr->len) && ret > 0); buffer[sizeof(struct sflap_hdr) + count + ret] = '\0'; return ret;