format strings

This commit is contained in:
Ulf Möller 2001-02-06 02:57:35 +00:00
parent 741a9690df
commit 4327aae816
8 changed files with 11 additions and 12 deletions

View File

@ -167,7 +167,7 @@ void main(void)
tempString[bytesRead] = '\0'; tempString[bytesRead] = '\0';
printf(tempString); printf("%s", tempString);
} }
printf("\n\n\n"); printf("\n\n\n");
@ -201,7 +201,7 @@ EXITPOINT:
{ {
printf("An error occurred:\n"); printf("An error occurred:\n");
printf(GetErrorMessage()); printf("%s",GetErrorMessage());
} }

View File

@ -479,7 +479,7 @@ bad:
if (badops) if (badops)
{ {
for (pp=ca_usage; (*pp != NULL); pp++) for (pp=ca_usage; (*pp != NULL); pp++)
BIO_printf(bio_err,*pp); BIO_printf(bio_err,"%s",*pp);
goto err; goto err;
} }

View File

@ -150,7 +150,7 @@ int MAIN(int argc, char **argv)
if (badops) if (badops)
{ {
for (pp=ciphers_usage; (*pp != NULL); pp++) for (pp=ciphers_usage; (*pp != NULL); pp++)
BIO_printf(bio_err,*pp); BIO_printf(bio_err,"%s",*pp);
goto end; goto end;
} }

View File

@ -214,7 +214,7 @@ int MAIN(int argc, char **argv)
{ {
bad: bad:
for (pp=crl_usage; (*pp != NULL); pp++) for (pp=crl_usage; (*pp != NULL); pp++)
BIO_printf(bio_err,*pp); BIO_printf(bio_err,"%s",*pp);
goto end; goto end;
} }

View File

@ -156,7 +156,7 @@ int MAIN(int argc, char **argv)
{ {
bad: bad:
for (pp=sess_id_usage; (*pp != NULL); pp++) for (pp=sess_id_usage; (*pp != NULL); pp++)
BIO_printf(bio_err,*pp); BIO_printf(bio_err,"%s",*pp);
goto end; goto end;
} }

View File

@ -435,7 +435,7 @@ int MAIN(int argc, char **argv)
{ {
bad: bad:
for (pp=x509_usage; (*pp != NULL); pp++) for (pp=x509_usage; (*pp != NULL); pp++)
BIO_printf(bio_err,*pp); BIO_printf(bio_err,"%s",*pp);
goto end; goto end;
} }

View File

@ -113,7 +113,7 @@ int main(int argc, char *argv[])
{ {
bad: bad:
for (pp=usage; (*pp != NULL); pp++) for (pp=usage; (*pp != NULL); pp++)
fprintf(stderr,*pp); fprintf(stderr,"%s",*pp);
exit(1); exit(1);
} }

View File

@ -186,14 +186,13 @@ static int usage(const char *errstr, int isunknownarg)
static int err_str0(const char *str0) static int err_str0(const char *str0)
{ {
fprintf(stderr, str0); fprintf(stderr, "%s\n", str0);
fprintf(stderr, "\n");
return 1; return 1;
} }
static int err_str1(const char *str0, const char *str1) static int err_str1(const char *fmt, const char *str1)
{ {
fprintf(stderr, str0, str1); fprintf(stderr, fmt, str1);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
return 1; return 1;
} }