From 659fff627648d21b25548bf3e624f27692f47f6b Mon Sep 17 00:00:00 2001 From: mdw Date: Sun, 8 Oct 2000 16:00:32 +0000 Subject: [PATCH] Fix compiler warning. --- rsa-pub.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rsa-pub.c b/rsa-pub.c index f4b1125..e5ec16c 100644 --- a/rsa-pub.c +++ b/rsa-pub.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: rsa-pub.c,v 1.1 2000/07/01 11:23:52 mdw Exp $ + * $Id: rsa-pub.c,v 1.2 2000/10/08 16:00:32 mdw Exp $ * * [RSA encryption with padding * * (c) 2000 Straylight/Edgeware @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: rsa-pub.c,v $ + * Revision 1.2 2000/10/08 16:00:32 mdw + * Fix compiler warning. + * * Revision 1.1 2000/07/01 11:23:52 mdw * Public-key operations, for symmetry with `rsa-priv.c'. Functions for * doing padded RSA encryption and signature verification. @@ -141,7 +144,7 @@ int rsa_encrypt(rsa_pubctx *rp, const void *m, size_t sz, /* --- Sort out some space --- */ dstr_ensure(d, n); - p = d->buf + d->len; + p = (octet *)d->buf + d->len; p[0] = 0; /* --- Do the packing --- */ -- 2.11.0