diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-02 18:12:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-02 18:12:16 +0000 |
commit | 959050826be252a6e8adab38954978158a81a845 (patch) | |
tree | 108dc3b2f53cb92b152d9f9f23177dcc61c0d6cc /toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch | |
parent | 357613e6234830ef3810ce0de338be6484d00dba (diff) | |
download | master-187ad058-959050826be252a6e8adab38954978158a81a845.tar.gz master-187ad058-959050826be252a6e8adab38954978158a81a845.tar.bz2 master-187ad058-959050826be252a6e8adab38954978158a81a845.zip |
uclibc: remove version 0.9.33
Latest uClibc-ng is now the only supported option
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47357 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch b/toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch deleted file mode 100644 index 7853c1afa0..0000000000 --- a/toolchain/uClibc/patches-0.9.33.2/150-vasprintf_size_reduce.patch +++ /dev/null @@ -1,37 +0,0 @@ -Reduce the initial buffer size for open_memstream (used by vasprintf), -as most strings are usually smaller than that. -Realloc the buffer after finishing the string to further reduce size. - -Signed-off-by: Felix Fietkau <nbd@openwrt.org> - ---- a/libc/stdio/vasprintf.c -+++ b/libc/stdio/vasprintf.c -@@ -39,6 +39,8 @@ int vasprintf(char **__restrict buf, con - if (rv < 0) { - free(*buf); - *buf = NULL; -+ } else { -+ *buf = realloc(*buf, rv + 1); - } - } - ---- a/libc/stdio/open_memstream.c -+++ b/libc/stdio/open_memstream.c -@@ -17,6 +17,8 @@ - - #define COOKIE ((__oms_cookie *) cookie) - -+#define MEMSTREAM_BUFSIZ 256 -+ - typedef struct { - char *buf; - size_t len; -@@ -134,7 +136,7 @@ FILE *open_memstream(char **__restrict b - register FILE *fp; - - if ((cookie = malloc(sizeof(__oms_cookie))) != NULL) { -- if ((cookie->buf = malloc(cookie->len = BUFSIZ)) == NULL) { -+ if ((cookie->buf = malloc(cookie->len = MEMSTREAM_BUFSIZ)) == NULL) { - goto EXIT_cookie; - } - *cookie->buf = 0; /* Set nul terminator for buffer. */ |