From 754b05a3e825bc040312fc1726ceaf6905f7fa2d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 27 Jul 2005 14:21:27 +0000 Subject: r8795: fix our perpetual motion maching in strncpy_w() (This used to be commit 3228e93ef2beda6f3551b2630e48db18bafd2e20) --- source3/lib/util_unistr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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); } -- cgit