]> sjero.net Git - wget/blobdiff - src/string_t.c
[svn] Fix escape chars in server response vulnerability. Server response is
[wget] / src / string_t.c
index 90417a22f939ea09c12b77edcfb9e6f2e7b0a22e..b94f12037860fba3e9258542563ea9c600947fc8 100644 (file)
 
 #include "config.h"
 
+#define _GNU_SOURCE            /* to get iswblank */
+
 #include <assert.h>
 #include <stdlib.h>
+#include <string.h>
 #include <wchar.h>
+#include <wctype.h>
 
 #include "wget.h"
 
@@ -182,12 +186,14 @@ string_destroy (struct string_t *str)
   memset (str, 0, sizeof (*str));
 }
 
+#if 0                          /* unused */
 static void
 string_append_delim (struct string_t *dst)
 {
   assert_valid_string (dst);
   string_cat (dst, line_delim, line_delim_len);
 }
+#endif
 
 static int 
 is_line_delim (const wchar_t *wsz)