* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.

This commit is contained in:
Corinna Vinschen 2014-10-29 11:06:42 +00:00
parent 5da7a22be0
commit 28e1bd0159
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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);