summaryrefslogtreecommitdiff
path: root/source3/lib/util_unistr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_unistr.c')
-rw-r--r--source3/lib/util_unistr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 8661f724fe..3cbbc6f2da 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -852,7 +852,7 @@ size_t strlen_w(const smb_ucs2_t *src)
{
size_t len;
- for(len = 0; *src; len++)
+ for(len = 0; *src++; len++)
;
return len;