mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
r8795: fix our perpetual motion maching in strncpy_w()
(This used to be commit 3228e93ef2beda6f3551b2630e48db18bafd2e20)
This commit is contained in:
parent
ecc0d00a6d
commit
754b05a3e8
@ -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 = *COPY_UCS2_CHAR(dest+len,src+len);
|
||||||
}
|
}
|
||||||
cp = 0;
|
cp = 0;
|
||||||
while (len < max) {
|
for ( /*nothing*/ ; len < max; len++ ) {
|
||||||
cp = *COPY_UCS2_CHAR(dest+len,&cp);
|
cp = *COPY_UCS2_CHAR(dest+len,&cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user