Mercurial > pidgin.yaz
diff plugins/history.c @ 3981:0283b00f5424
[gaim-migrate @ 4172]
Thanks, Ethan.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 18 Nov 2002 22:17:40 +0000 |
parents | 1861b94f4da1 |
children | 74d27aa5b686 |
line wrap: on
line diff
--- a/plugins/history.c Mon Nov 18 22:10:52 2002 +0000 +++ b/plugins/history.c Mon Nov 18 22:17:40 2002 +0000 @@ -32,7 +32,7 @@ return; } - fseek(fd, st.st_size > HISTORY_SIZE ? st.st_size - HISTORY_SIZE : st.st_size, SEEK_SET); + fseek(fd, st.st_size > HISTORY_SIZE ? st.st_size - HISTORY_SIZE : 0, SEEK_SET); size = fread(buf, 1, HISTORY_SIZE, fd); tmp = buf; tmp[size] = 0;