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:
parent
0c8859474d
commit
3228e93ef2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user