diff options
author | dtucker <dtucker> | 2004-12-11 02:34:56 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2004-12-11 02:34:56 +0000 |
commit | cc5a76dd275aeae5bed26e690f738710c8706d46 (patch) | |
tree | 08458a1cd9d3a4ae6ce4f261d143c4367af6aed6 /bufaux.c | |
parent | 6b63475cfc65f8bb86a5b2e404698b045f074d05 (diff) | |
download | openssh-cc5a76dd275aeae5bed26e690f738710c8706d46.tar.gz |
- (dtucker) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2004/12/06 16:00:43
[bufaux.c]
use 0x00 not \0 since buf[] is a bignum
Diffstat (limited to 'bufaux.c')
-rw-r--r-- | bufaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: bufaux.c,v 1.33 2004/10/29 23:56:17 djm Exp $"); +RCSID("$OpenBSD: bufaux.c,v 1.34 2004/12/06 16:00:43 markus Exp $"); #include <openssl/bn.h> #include "bufaux.h" @@ -151,7 +151,7 @@ buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) return (-1); } buf = xmalloc(bytes); - buf[0] = '\0'; + buf[0] = 0x00; /* Get the value of in binary */ oi = BN_bn2bin(value, buf+1); if (oi != bytes-1) { |