summaryrefslogtreecommitdiff
path: root/www/clearsilver/files/patch-cgi__html.c
blob: 450bb56a75a7fce90b9480bd55e3e5aec7f96904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- ./cgi/html.c.orig	2006-10-20 01:26:35.000000000 +0200
+++ ./cgi/html.c	2012-04-23 18:02:55.987510632 +0200
@@ -388,7 +388,7 @@
 	    url = (char *) malloc(url_len+1);
 	    if (url == NULL)
 	    {
-	      err = nerr_raise(NERR_NOMEM,
+	      err = nerr_raise(NERR_NOMEM, "%s",
 		  "Unable to allocate memory to convert url");
 	      break;
 	    }
@@ -401,7 +401,7 @@
 	    url = (char *) malloc(url_len+1);
 	    if (url == NULL)
 	    {
-	      err = nerr_raise(NERR_NOMEM,
+	      err = nerr_raise(NERR_NOMEM, "%s",
 		  "Unable to allocate memory to convert url");
 	      break;
 	    }
@@ -419,7 +419,7 @@
 	  free(esc_url);
 	  if (new_url == NULL)
 	  {
-	    err = nerr_raise(NERR_NOMEM, "Unable to allocate memory to convert url");
+	    err = nerr_raise(NERR_NOMEM, "%s", "Unable to allocate memory to convert url");
 	    break;
 	  }
 	  err = string_append (out, new_url);