summaryrefslogtreecommitdiffstats
path: root/bufaux.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-12-11 13:34:56 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-12-11 13:34:56 +1100
commit56c9598e5edacbb45d155eebafb3480c6efb7382 (patch)
treea86f2f288341e93987eb05db745b2f35ccb3c1ce /bufaux.c
parent0f83d2907cc227b46ebd3e9771534b2c50cbd139 (diff)
- (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bufaux.c b/bufaux.c
index cbe77d5a..4ea6af1b 100644
--- a/bufaux.c
+++ b/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) {