Author: jerry Date: 2005-07-27 14:21:27 +0000 (Wed, 27 Jul 2005) New Revision: 8795
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8795 Log: fix our perpetual motion maching in strncpy_w() Modified: branches/SAMBA_3_0/source/lib/util_unistr.c Changeset: Modified: branches/SAMBA_3_0/source/lib/util_unistr.c =================================================================== --- branches/SAMBA_3_0/source/lib/util_unistr.c 2005-07-27 03:14:42 UTC (rev 8794) +++ branches/SAMBA_3_0/source/lib/util_unistr.c 2005-07-27 14:21:27 UTC (rev 8795) @@ -697,7 +697,7 @@ 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); }