comparison libpurple/protocols/yahoo/yahoo_filexfer.c @ 31788:f70353405940

Fix truncation of a string in the Yahoo! prpl to be not quite so stupid.
author Ethan Blanton <elb@pidgin.im>
date Thu, 11 Aug 2011 16:30:51 +0000
parents b671728e6ee9
children dc4de0b08405 3828a61c44da
comparison
equal deleted inserted replaced
31787:32ced32caca7 31788:f70353405940
1426 return; 1426 return;
1427 } 1427 }
1428 1428
1429 unix_time = time(NULL); 1429 unix_time = time(NULL);
1430 time_str = ctime(&unix_time); 1430 time_str = ctime(&unix_time);
1431 strcpy(time_str + strlen(time_str) - 1, "\0"); 1431 time_str[strlen(time_str) - 1] = '\0';
1432 1432
1433 if (xd->txbuflen == 0) { 1433 if (xd->txbuflen == 0) {
1434 xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\n" 1434 xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\n"
1435 "Date: %s GMT\r\n" 1435 "Date: %s GMT\r\n"
1436 "Server: Y!/1.0\r\n" 1436 "Server: Y!/1.0\r\n"