1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

r8795: fix our perpetual motion maching in strncpy_w()

This commit is contained in:
Gerald Carter 2005-07-27 14:21:27 +00:00 committed by Gerald (Jerry) Carter
parent 0c8859474d
commit 3228e93ef2

View File

@ -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);
}