projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid BN_MONT_CTX incompatibility.
[oweals/openssl.git]
/
demos
/
spkigen.c
diff --git
a/demos/spkigen.c
b/demos/spkigen.c
index d87881197c558debbc017ffb28481e8e2b702d29..2cd5dfea970dd65223d10ce75c707940ac3f1ff5 100644
(file)
--- a/
demos/spkigen.c
+++ b/
demos/spkigen.c
@@
-65,7
+65,8
@@
char *argv[];
fprintf(stderr,"please enter challenge string:");
fflush(stderr);
- fgets(buf,120,stdin);
+ buf[0]='\0';
+ fgets(buf,sizeof buf,stdin);
i=strlen(buf);
if (i > 0) buf[--i]='\0';
if (!ASN1_STRING_set((ASN1_STRING *)spki->spkac->challenge,