comparison libpurple/log.c @ 31007:c5ba7dd399fa

merged from im.pidgin.pidgin: - oscar.c needs to be revised - changes in google.c may need to be salvaged
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 22 Sep 2010 14:17:09 +0900
parents 7c871249318b
children 717794d55760
comparison
equal deleted inserted replaced
30786:86e77ae76e16 31007:c5ba7dd399fa
1679 char *index_tmp; 1679 char *index_tmp;
1680 char buf[BUF_LONG]; 1680 char buf[BUF_LONG];
1681 struct tm tm; 1681 struct tm tm;
1682 char month[4]; 1682 char month[4];
1683 struct old_logger_data *data = NULL; 1683 struct old_logger_data *data = NULL;
1684 char *newlog;
1685 int logfound = 0; 1684 int logfound = 0;
1686 int lastoff = 0; 1685 int lastoff = 0;
1687 int newlen; 1686 int newlen;
1688 time_t lasttime = 0; 1687 time_t lasttime = 0;
1689 1688
1781 g_free(pathstr); 1780 g_free(pathstr);
1782 } 1781 }
1783 } 1782 }
1784 1783
1785 while (fgets(buf, BUF_LONG, file)) { 1784 while (fgets(buf, BUF_LONG, file)) {
1786 if ((newlog = strstr(buf, "---- New C"))) { 1785 if (strstr(buf, "---- New C") != NULL) {
1787 int length; 1786 int length;
1788 int offset; 1787 int offset;
1789 char convostart[32]; 1788 char convostart[32];
1790 char *temp = strchr(buf, '@'); 1789 char *temp = strchr(buf, '@');
1791 1790