diff options
author | kris <kris@FreeBSD.org> | 2001-03-05 02:54:13 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-03-05 02:54:13 +0000 |
commit | e1012a939e55b506c4b67a7b8b5b03d34d46fcad (patch) | |
tree | ff0ea5bec5ade2ff56f85b49091c5020e23c63ad /contrib/opie | |
parent | aee7d5e2d9b6409777977e7e84bb592b3ec3bd30 (diff) | |
download | FreeBSD-src-e1012a939e55b506c4b67a7b8b5b03d34d46fcad.zip FreeBSD-src-e1012a939e55b506c4b67a7b8b5b03d34d46fcad.tar.gz |
Import patch to fix non-constant format string abuses. This patch was
approved by the vendor and will be present in future releases.
Diffstat (limited to 'contrib/opie')
-rw-r--r-- | contrib/opie/opielogin.c | 2 | ||||
-rw-r--r-- | contrib/opie/permsfile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/opie/opielogin.c b/contrib/opie/opielogin.c index eacfac9..8ca8de0 100644 --- a/contrib/opie/opielogin.c +++ b/contrib/opie/opielogin.c @@ -291,7 +291,7 @@ static VOIDRET getloginname FUNCTION_NOARGS flags = 4; first--; } else - printf(ttyprompt); + printf("%s", ttyprompt); } else printf("login: "); fflush(stdout); diff --git a/contrib/opie/permsfile.c b/contrib/opie/permsfile.c index 46650b1..13b3ea3 100644 --- a/contrib/opie/permsfile.c +++ b/contrib/opie/permsfile.c @@ -48,7 +48,7 @@ char **ftpglob __P((char *)); VOIDRET opiefatal FUNCTION((x), char *x) { - fprintf(stderr, x); + fprintf(stderr, "%s", x); exit(1); } |