diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-10-29 11:06:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-10-29 11:06:42 +0000 |
commit | 28e1bd015974cc3a177343c2d7916fd6748ead0e (patch) | |
tree | 21d13041cbc844938ea2cda22f169f05e7d1c3cb /newlib | |
parent | 5da7a22be0f2035da004c9f3a3dc228c575a526f (diff) | |
download | cygnal-28e1bd015974cc3a177343c2d7916fd6748ead0e.tar.gz cygnal-28e1bd015974cc3a177343c2d7916fd6748ead0e.tar.bz2 cygnal-28e1bd015974cc3a177343c2d7916fd6748ead0e.zip |
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 9 | ||||
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 6e542568d..0b134ea99 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,12 @@ +2014-10-29 Terry Guo <terry.guo@arm.com> + + * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison. + +2014-10-27 Corinna Vinschen <vinschen@redhat.com> + + * libc/stdlib/__call_atexit.c (__deregister_exitproc): Add Cygwin-only + function to deregister functions from the atexit function chain. + 2014-10-27 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/include/sys/unistd.h (sethostname): Declare if diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index dd9c22a6d..5e6c61ca4 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -1521,11 +1521,9 @@ string: */ char *p = memchr (cp, 0, prec); - if (p != NULL) { + if (p != NULL) size = p - cp; - if (size > prec) - size = prec; - } else + else size = prec; } else size = strlen (cp); |