提交 4327aae8 编写于 作者: U Ulf Möller

format strings

上级 741a9690
......@@ -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());
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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);
}
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册