# HG changeset patch # User Ethan Blanton # Date 1313080251 0 # Node ID f703534059409166a063f7512111ae33429edd46 # Parent 32ced32caca783497e299d9e9bf5488c81ce49ae Fix truncation of a string in the Yahoo! prpl to be not quite so stupid. diff -r 32ced32caca7 -r f70353405940 libpurple/protocols/yahoo/yahoo_filexfer.c --- a/libpurple/protocols/yahoo/yahoo_filexfer.c Thu Aug 11 16:24:26 2011 +0000 +++ b/libpurple/protocols/yahoo/yahoo_filexfer.c Thu Aug 11 16:30:51 2011 +0000 @@ -1428,7 +1428,7 @@ unix_time = time(NULL); time_str = ctime(&unix_time); - strcpy(time_str + strlen(time_str) - 1, "\0"); + time_str[strlen(time_str) - 1] = '\0'; if (xd->txbuflen == 0) { xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\n"