pidgin: 8cc20b5b: Reformat a printf so the HTTP headers ar...

paul at darkrain42.org paul at darkrain42.org
Sat Apr 11 19:05:44 EDT 2009


-----------------------------------------------------------------
Revision: 8cc20b5b5338ad061e1fc40dcf7f7da9337520b7
Ancestor: 0068cedd03804855a4ded8aeb153ccaffb8158bc
Author: paul at darkrain42.org
Date: 2009-04-11T21:52:58
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8cc20b5b5338ad061e1fc40dcf7f7da9337520b7

Modified files:
        libpurple/protocols/yahoo/yahoo_filexfer.c

ChangeLog: 

Reformat a printf so the HTTP headers are easier to read

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_filexfer.c	2316c80a95609e01b83e6e6db0e61c9514f89835
+++ libpurple/protocols/yahoo/yahoo_filexfer.c	ce75a755b0c3d4a54a5fa55f3820009b0178e6b6
@@ -1385,7 +1385,13 @@ static void yahoo_p2p_ft_HEAD_GET_cb(gpo
 	strcpy(time_str + strlen(time_str) - 1, "\0");
 
 	if (xd->txbuflen == 0)	{
-		xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\nDate: %s GMT\r\nServer: Y!/1.0\r\nMIME-version: 1.0\r\nLast-modified: %s GMT\r\nContent-length: %d\r\n\r\n", time_str, time_str, xfer->size);
+		xd->txbuf = g_strdup_printf("HTTP/1.0 200 OK\r\n"
+		                            "Date: %s GMT\r\n"
+		                            "Server: Y!/1.0\r\n"
+		                            "MIME-version: 1.0\r\n"
+		                            "Last-modified: %s GMT\r\n"
+		                            "Content-length: %d\r\n\r\n",
+		                            time_str, time_str, xfer->size);
 		xd->txbuflen = strlen(xd->txbuf);
 		xd->txbuf_written = 0;
 	}


More information about the Commits mailing list