mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-18 21:26:29 -05:00
ITS#10410 lutil_strncopy: refix prev commit
This commit is contained in:
parent
a946853b12
commit
7055e08841
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,8 @@ lutil_strncopy(
|
|||
return a;
|
||||
|
||||
while ((*a++ = *b++) && --n > 0) ;
|
||||
if (n)
|
||||
a--;
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue