r6959: Meant to fix this before commiting, just to be consistent.
authorDeryck Hodge <deryck@samba.org>
Tue, 24 May 2005 17:37:04 +0000 (17:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:59 +0000 (10:56 -0500)
deryck
(This used to be commit 3732705605c757d8647efa2731070025f79ab302)

source3/web/swat.c

index d7e4e722412426001f289f848816b62e710f257d..8505f1a6859bb422a892202799053a5e368f158c 100644 (file)
@@ -87,7 +87,7 @@ static char *fix_quotes(const char *str)
        while (*str) {
                if ( *str == '\"' && (newstring_len - PTR_DIFF(p, newstring) - 1) > quote_len ) {
                        strncpy( p, "&quot;", quote_len); 
-                       p += 6;
+                       p += quote_len;
                } else {
                        *p++ = *str;
                }