summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/web/swat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index d7e4e72241..8505f1a685 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -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, """, quote_len);
- p += 6;
+ p += quote_len;
} else {
*p++ = *str;
}