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';
printf(tempString);
printf("%s", tempString);
}
printf("\n\n\n");
@ -201,7 +201,7 @@ EXITPOINT:
{
printf("An error occurred:\n");
printf(GetErrorMessage());
printf("%s",GetErrorMessage());
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -186,14 +186,13 @@ static int usage(const char *errstr, int isunknownarg)
static int err_str0(const char *str0)
{
fprintf(stderr, str0);
fprintf(stderr, "\n");
fprintf(stderr, "%s\n", str0);
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");
return 1;
}