From: Sebastian B. <sb...@us...> - 2014-02-23 13:25:58
|
Update of /cvsroot/simplemail/simplemail/gtk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24549/gtk Modified Files: support.c Log Message: Print the text when not compiling with GTK. Index: support.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/gtk/support.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- support.c 24 Dec 2013 09:31:38 -0000 1.16 +++ support.c 23 Feb 2014 13:25:55 -0000 1.17 @@ -348,6 +348,19 @@ return rc; #else + va_list ap; + char *text_buf; + + if (!(text_buf = malloc(2048))) + return 0; + + va_start(ap, gadgets); + vsnprintf(text_buf, 2048, text, ap); + va_end(ap); + + printf("%s\n", text_buf); + + free(text_buf); return 0; #endif } |