Index: xgnokii/xgnokii_sms.c =================================================================== RCS file: /cvsroot/gnokii/gnokii/xgnokii/xgnokii_sms.c,v retrieving revision 1.53 diff -c -3 -p -r1.53 xgnokii_sms.c *** xgnokii/xgnokii_sms.c 2 Feb 2003 23:19:01 -0000 1.53 --- xgnokii/xgnokii_sms.c 6 Feb 2003 12:22:17 -0000 *************** static void SaveToMailbox(gchar *mailbox *** 625,631 **** struct flock lock; time_t caltime; gint row; ! gchar *number, *text, *loc, dummy; if ((f = fopen(mailbox_name, "a")) == NULL) { --- 625,631 ---- struct flock lock; time_t caltime; gint row; ! gchar *number, *text, *loc, dummy[5]; if ((f = fopen(mailbox_name, "a")) == NULL) { *************** static void SaveToMailbox(gchar *mailbox *** 669,686 **** row = GPOINTER_TO_INT(sel->data); sel = sel->next; gtk_clist_get_text(GTK_CLIST(SMS.smsClist), row, 1, &text); ! snprintf(&dummy, 3, "%s", text + 17); ! t.tm_sec = atoi(&dummy); ! snprintf(&dummy, 3, "%s", text + 14); ! t.tm_min = atoi(&dummy); ! snprintf(&dummy, 3, "%s", text + 11); ! t.tm_hour = atoi(&dummy); ! snprintf(&dummy, 3, "%s", text); ! t.tm_mday = atoi(&dummy); ! snprintf(&dummy, 3, "%s", text + 3); ! t.tm_mon = atoi(&dummy) - 1; ! snprintf(&dummy, 5, "%s", text + 6); ! t.tm_year = atoi(&dummy) - 1900; #ifdef HAVE_TM_GMTON if (text[19] != '\0') t.tm_gmtoff = atoi(text + 18) * 3600; --- 669,686 ---- row = GPOINTER_TO_INT(sel->data); sel = sel->next; gtk_clist_get_text(GTK_CLIST(SMS.smsClist), row, 1, &text); ! snprintf(dummy, 3, "%s", text + 17); ! t.tm_sec = atoi(dummy); ! snprintf(dummy, 3, "%s", text + 14); ! t.tm_min = atoi(dummy); ! snprintf(dummy, 3, "%s", text + 11); ! t.tm_hour = atoi(dummy); ! snprintf(dummy, 3, "%s", text); ! t.tm_mday = atoi(dummy); ! snprintf(dummy, 3, "%s", text + 3); ! t.tm_mon = atoi(dummy) - 1; ! snprintf(dummy, 5, "%s", text + 6); ! t.tm_year = atoi(dummy) - 1900; #ifdef HAVE_TM_GMTON if (text[19] != '\0') t.tm_gmtoff = atoi(text + 18) * 3600;