mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#10410 WIN32 logging: simplify buffer calculation
This commit is contained in:
parent
ff0f9d94ac
commit
afafeaf407
1 changed files with 2 additions and 1 deletions
|
|
@ -118,8 +118,9 @@ slap_debug_print( const char *data )
|
|||
poffset = splen - prefixlen;
|
||||
AC_MEMCPY( ptr+poffset, ptr, prefixlen );
|
||||
}
|
||||
ptr += poffset+prefixlen;
|
||||
|
||||
ptr = lutil_strncopy( ptr+poffset+prefixlen, data, sizeof(msgbuf) - prefixlen);
|
||||
ptr = lutil_strncopy( ptr, data, sizeof(msgbuf) - (ptr-msgbuf) );
|
||||
len = ptr - msgbuf - poffset;
|
||||
datalen = len - prefixlen;
|
||||
if ( !logfile_only )
|
||||
|
|
|
|||
Loading…
Reference in a new issue