summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-12-06 16:00:44 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-12-06 16:00:44 +0000
commit5df144e1e63d91564be0239f46460f4d9062a836 (patch)
treeeb0ed399cadd19503d12eb3ae4621ff65c0774c8 /usr.bin
parent402d39bd8168320b22fddf8fefda796613d294bd (diff)
use 0x00 not \0 since buf[] is a bignum
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/bufaux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/bufaux.c b/usr.bin/ssh/bufaux.c
index cbe77d5ae9f..4ea6af1b658 100644
--- a/usr.bin/ssh/bufaux.c
+++ b/usr.bin/ssh/bufaux.c
@@ -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) {