changeset 454:c0d3c2ec7140

- Fixed a printf bug in cookies dpi.
author jcid
date Sat, 22 Nov 2008 21:54:49 +0100
parents 817c15b79ca7
children a6da19c1c5b9
files dpi/cookies.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Fri Nov 21 18:11:24 2008 +0100
+++ b/dpi/cookies.c	Sat Nov 22 21:54:49 2008 +0100
@@ -426,7 +426,7 @@
    rewind(file_stream);
    fd = fileno(file_stream);
    ftruncate(fd, 0);
-   fprintf(file_stream, cookies_txt_header_str);
+   fprintf(file_stream, "%s", cookies_txt_header_str);
 
    /* Iterate cookies per domain, saving and freeing */
    while ((node = dList_nth_data(cookies, 0))) {