mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- (dtucker) [openbsd-compat/bsd-snprintf.c] Previous change was off by one,
which could have caused the justification to be wrong. ok djm@
This commit is contained in:
parent
5d596139d4
commit
4127f559ad
@ -1,3 +1,7 @@
|
|||||||
|
20040923
|
||||||
|
- (dtucker) [openbsd-compat/bsd-snprintf.c] Previous change was off by one,
|
||||||
|
which could have caused the justification to be wrong. ok djm@
|
||||||
|
|
||||||
20040921
|
20040921
|
||||||
- (dtucker) [openbsd-compat/bsd-snprintf.c] Check for max length too.
|
- (dtucker) [openbsd-compat/bsd-snprintf.c] Check for max length too.
|
||||||
ok djm@
|
ok djm@
|
||||||
@ -1750,4 +1754,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3554 2004/09/21 11:35:55 dtucker Exp $
|
$Id: ChangeLog,v 1.3555 2004/09/23 11:35:09 dtucker Exp $
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
RCSID("$Id: bsd-snprintf.c,v 1.8 2004/09/21 11:32:13 dtucker Exp $");
|
RCSID("$Id: bsd-snprintf.c,v 1.9 2004/09/23 11:35:09 dtucker Exp $");
|
||||||
|
|
||||||
#if defined(BROKEN_SNPRINTF) /* For those with broken snprintf() */
|
#if defined(BROKEN_SNPRINTF) /* For those with broken snprintf() */
|
||||||
# undef HAVE_SNPRINTF
|
# undef HAVE_SNPRINTF
|
||||||
@ -369,7 +369,7 @@ fmtstr(char *buffer, size_t *currlen, size_t maxlen,
|
|||||||
if (value == 0)
|
if (value == 0)
|
||||||
value = "<NULL>";
|
value = "<NULL>";
|
||||||
|
|
||||||
for (strln = 0; strln <= max && value[strln]; ++strln); /* strlen */
|
for (strln = 0; strln < max && value[strln]; ++strln); /* strlen */
|
||||||
padlen = min - strln;
|
padlen = min - strln;
|
||||||
if (padlen < 0)
|
if (padlen < 0)
|
||||||
padlen = 0;
|
padlen = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user