comparison src/util.c @ 13117:d9d15ec284ca

[gaim-migrate @ 15479] Fix a stupid bug. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sat, 04 Feb 2006 00:09:09 +0000
parents 0651b6008120
children fcde3faa1f57
comparison
equal deleted inserted replaced
13116:0651b6008120 13117:d9d15ec284ca
568 if (sscanf(c, "%04d", &year) && year > 1900) 568 if (sscanf(c, "%04d", &year) && year > 1900)
569 { 569 {
570 c += 4; 570 c += 4;
571 if (*c == '-') 571 if (*c == '-')
572 c++; 572 c++;
573 t->tm_year -= 1900; 573 t->tm_year = year - 1900;
574 } 574 }
575 575
576 /* 2 digit month */ 576 /* 2 digit month */
577 if (!sscanf(c, "%02d", &t->tm_mon)) 577 if (!sscanf(c, "%02d", &t->tm_mon))
578 return 0; 578 return 0;