changeset 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 2e89b3022832
children 156d2c2fc3d5
files plugins/history.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;