]> sourceware.org Git - newlib-cygwin.git/commitdiff
2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org>
authorJeff Johnston <jjohnstn@redhat.com>
Wed, 5 Jan 2011 17:38:42 +0000 (17:38 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 5 Jan 2011 17:38:42 +0000 (17:38 +0000)
        * libc/stdio/open_memstream.c (internal_open_memstream_r):
        Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.

newlib/ChangeLog
newlib/libc/stdio/open_memstream.c

index c5fb3771fb69d159d40d092d42848148878233ba..418ec382e6b8964899f1a94568e919eae28c5060 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
+
+       * libc/stdio/open_memstream.c (internal_open_memstream_r):
+       Don't limit c->max to 64*1024 on targets with SIZE_MAX < 64*1024.
+
 2011-01-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
 
        * libc/xdr/xdr.c: Fix typos in #errors.
index 2066822cd6a9ee7886767a072861d968f037cc76..a53bdef2f11b3ffe4f5abf1f5c9b95bfe54481fe 100644 (file)
@@ -330,8 +330,10 @@ _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide),
     c->max *= sizeof(wchar_t);
   if (c->max < 64)
     c->max = 64;
+#if (SIZE_MAX >= 64 * 1024)
   else if (c->max > 64 * 1024)
     c->max = 64 * 1024;
+#endif
   *size = 0;
   *buf = _malloc_r (ptr, c->max);
   if (!*buf)
This page took 0.042586 seconds and 5 git commands to generate.