comparison libpurple/protocols/msn/msnutils.c @ 20471:530a92d50c5e

Misc cleanups, better error handling, and print the Address Book received from the server in a human readable way.
author Carlos Silva <typ0@pidgin.im>
date Tue, 17 Jul 2007 00:35:50 +0000
parents 9e5bb492fc18
children 723b5a2f91ce
comparison
equal deleted inserted replaced
20470:7d6f247f08d9 20471:530a92d50c5e
479 { 479 {
480 char temp[64]; 480 char temp[64];
481 struct tm ctime; 481 struct tm ctime;
482 time_t ts; 482 time_t ts;
483 483
484 purple_debug_info("MaYuan","convert string is{%s}\n",timestr); 484 purple_debug_info("MSNP14","convert string is{%s}\n",timestr);
485 tzset(); 485 tzset();
486 /*copy string first*/ 486 /*copy string first*/
487 memset(temp, 0, sizeof(temp)); 487 memset(temp, 0, sizeof(temp));
488 strncpy(temp, timestr, strlen(timestr)); 488 strncpy(temp, timestr, strlen(timestr));
489 489
585 output[(i*2)+1]=hexChars[newHash[i]&0xF]; 585 output[(i*2)+1]=hexChars[newHash[i]&0xF];
586 } 586 }
587 587
588 output[32]='\0'; 588 output[32]='\0';
589 589
590 // purple_debug_info("MaYuan","chl output{%s}\n",output); 590 // purple_debug_info("MSNP14","chl output{%s}\n",output);
591 } 591 }