comparison 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
comparison
equal deleted inserted replaced
3980:2e89b3022832 3981:0283b00f5424
30 g_free(logfile); 30 g_free(logfile);
31 g_free(path); 31 g_free(path);
32 return; 32 return;
33 } 33 }
34 34
35 fseek(fd, st.st_size > HISTORY_SIZE ? st.st_size - HISTORY_SIZE : st.st_size, SEEK_SET); 35 fseek(fd, st.st_size > HISTORY_SIZE ? st.st_size - HISTORY_SIZE : 0, SEEK_SET);
36 size = fread(buf, 1, HISTORY_SIZE, fd); 36 size = fread(buf, 1, HISTORY_SIZE, fd);
37 tmp = buf; 37 tmp = buf;
38 tmp[size] = 0; 38 tmp[size] = 0;
39 39
40 /* start the history at a newline */ 40 /* start the history at a newline */