summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-27 14:21:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:17 -0500
commit754b05a3e825bc040312fc1726ceaf6905f7fa2d (patch)
tree979fcf27119cba726be9365e7d969bafc35184f1 /source3
parentecc0d00a6d9b249a447e05b649cc37ee8e43589a (diff)
downloadsamba-754b05a3e825bc040312fc1726ceaf6905f7fa2d.tar.gz
samba-754b05a3e825bc040312fc1726ceaf6905f7fa2d.tar.bz2
samba-754b05a3e825bc040312fc1726ceaf6905f7fa2d.zip
r8795: fix our perpetual motion maching in strncpy_w()
(This used to be commit 3228e93ef2beda6f3551b2630e48db18bafd2e20)
Diffstat (limited to 'source3')
-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 8ae86a7c61..b31e01474a 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -697,7 +697,7 @@ smb_ucs2_t *strncpy_w(smb_ucs2_t *dest, const smb_ucs2_t *src, const size_t max)
cp = *COPY_UCS2_CHAR(dest+len,src+len);
}
cp = 0;
- while (len < max) {
+ for ( /*nothing*/ ; len < max; len++ ) {
cp = *COPY_UCS2_CHAR(dest+len,&cp);
}