diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-07 13:34:20 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-07 13:34:20 +0200 |
commit | 501197e5ef5ce8687aaf8bd4352f296bb7a5c0e8 (patch) | |
tree | bd5f430839638e403a80723d0299b1ba0d08b741 /lib/rpmps.c | |
parent | de4085814e7bf93042f2fba06ca24a4e63a4b27a (diff) | |
download | rpm-501197e5ef5ce8687aaf8bd4352f296bb7a5c0e8.tar.gz |
Stop insecurely covering up for lack of snprintf and vsnprintf
- we require C99 anyway
- snprintf is used unconditionally all around the tree
- if absolutely needed for portability, having insecure wrappers littered
over the source is not the best way
Diffstat (limited to 'lib/rpmps.c')
-rw-r--r-- | lib/rpmps.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/rpmps.c b/lib/rpmps.c index 6b24b884e..26623c757 100644 --- a/lib/rpmps.c +++ b/lib/rpmps.c @@ -207,25 +207,6 @@ int rpmpsTrim(rpmps ps, rpmps filter) return gotProblems; } -#if !defined(HAVE_VSNPRINTF) -static inline int vsnprintf(char * buf, int nb, - const char * fmt, va_list ap) -{ - return vsprintf(buf, fmt, ap); -} -#endif -#if !defined(HAVE_SNPRINTF) -static inline int snprintf(char * buf, int nb, const char * fmt, ...) -{ - va_list ap; - int rc; - va_start(ap, fmt); - rc = vsnprintf(buf, nb, fmt, ap); - va_end(ap); - return rc; -} -#endif - rpmProblem rpmProblemCreate(rpmProblemType type, const char * pkgNEVR, fnpyKey key, |