summaryrefslogtreecommitdiff
path: root/www/clearsilver/files/patch-cs__cstest.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-07 16:50:18 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-07 16:50:18 +0000
commit77e28779ef3d4ad07a50cf12988ea8f87f1d5c0a (patch)
tree541a6bffd8c5ddc7da28bd02182e2d1e2c15d4c3 /www/clearsilver/files/patch-cs__cstest.c
parentStop installing catpages (diff)
Fix build with clang
PR: ports/167231 Submitted by: bapt Approved by: maintainer timeout (14d)
Diffstat (limited to 'www/clearsilver/files/patch-cs__cstest.c')
-rw-r--r--www/clearsilver/files/patch-cs__cstest.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/clearsilver/files/patch-cs__cstest.c b/www/clearsilver/files/patch-cs__cstest.c
new file mode 100644
index 000000000000..201bf4603e9a
--- /dev/null
+++ b/www/clearsilver/files/patch-cs__cstest.c
@@ -0,0 +1,11 @@
+--- ./cs/cstest.c.orig 2006-03-13 00:54:15.000000000 +0100
++++ ./cs/cstest.c 2012-04-23 17:54:05.809909855 +0200
+@@ -30,7 +30,7 @@
+ int x = 0;
+
+ if (s == NULL)
+- return nerr_raise(NERR_NOMEM, "Unable to duplicate string in test_strfunc");
++ return nerr_raise(NERR_NOMEM, "%s", "Unable to duplicate string in test_strfunc");
+
+ while (s[x]) {
+ s[x] = tolower(s[x]);