summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-10-24 08:25:59 -0600
committerGitHub <noreply@github.com>2020-10-24 08:25:59 -0600
commit767b28537a01c8dd0171a8f8fc2f817104028366 (patch)
tree4c1f0a3d95bceb7e98d3bead2589f266cbee553c /libs
parent27f308091b5b1ae093a5f763a3bc8b9d5b1e6adf (diff)
downloadbcm5719-ortega-767b28537a01c8dd0171a8f8fc2f817104028366.tar.gz
bcm5719-ortega-767b28537a01c8dd0171a8f8fc2f817104028366.zip
builds: Add Microsoft's SDL and banned API list (#148)
Diffstat (limited to 'libs')
-rw-r--r--libs/printf/printf.c9
-rw-r--r--libs/printf/printf.h11
2 files changed, 0 insertions, 20 deletions
diff --git a/libs/printf/printf.c b/libs/printf/printf.c
index 6217c26..b37ce1f 100644
--- a/libs/printf/printf.c
+++ b/libs/printf/printf.c
@@ -1007,15 +1007,6 @@ int printf_(const char *format, ...)
return ret;
}
-int sprintf_(char *buffer, const char *format, ...)
-{
- va_list va;
- va_start(va, format);
- const int ret = _vsnprintf(_out_buffer, buffer, (size_t)-1, format, va);
- va_end(va);
- return ret;
-}
-
int snprintf_(char *buffer, size_t count, const char *format, ...)
{
va_list va;
diff --git a/libs/printf/printf.h b/libs/printf/printf.h
index de72d5c..4fc0ae8 100644
--- a/libs/printf/printf.h
+++ b/libs/printf/printf.h
@@ -63,17 +63,6 @@ int printf_(const char* format, ...);
/**
- * Tiny sprintf implementation
- * Due to security reasons (buffer overflow) YOU SHOULD CONSIDER USING (V)SNPRINTF INSTEAD!
- * \param buffer A pointer to the buffer where to store the formatted string. MUST be big enough to store the output!
- * \param format A string that specifies the format of the output
- * \return The number of characters that are WRITTEN into the buffer, not counting the terminating null character
- */
-#define sprintf sprintf_ //lint !e828
-int sprintf_(char* buffer, const char* format, ...);
-
-
-/**
* Tiny snprintf/vsnprintf implementation
* \param buffer A pointer to the buffer where to store the formatted string
* \param count The maximum number of characters to store in the buffer, including a terminating null character
OpenPOWER on IntegriCloud