Comment 2 for bug 592576

Revision history for this message
Rainer Jung (rainer-jung-kippdata) wrote :

This is also tracked in the ASF Bugzilla under

https://issues.apache.org/bugzilla/show_bug.cgi?id=50339

Could you try the following patch:

Index: common/jk_map.c
===================================================================
--- common/jk_map.c (revision 1032021)
+++ common/jk_map.c (working copy)
@@ -630,6 +630,7 @@
 static size_t trim(char *s)
 {
     size_t i;
+ size_t off;

     /* check for empty strings */
     if (!(i = strlen(s)))
@@ -646,7 +647,10 @@
          isspace((int)((unsigned char)s[i])); i++);

     if (i > 0) {
- strcpy(s, &s[i]);
+ for (off = i; '\0' != s[i]; i++); {
+ s[i - off] = s[i];
+ }
+ s[i - off] = s[i];
     }

Tanks.

Rainer