From: Ulrich Drepper Date: Sat, 7 Jul 2001 19:24:57 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~15897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22af13de454d18449856c2334f77e5e6b4818fa7;p=platform%2Fupstream%2Flinaro-glibc.git Update. * posix/regex.c: Limit string length printed in debug messages to 100 chars. --- diff --git a/ChangeLog b/ChangeLog index 6e25a8c..72ac0c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-07-07 Ulrich Drepper + * posix/regex.c: Limit string length printed in debug messages to + 100 chars. + * configure.in: Don't warn about versioning if not on ELF system. 2001-07-07 Andreas Jaeger diff --git a/configure b/configure index 859e798..c873bc7 100755 --- a/configure +++ b/configure @@ -2680,7 +2680,7 @@ else fi -if test $shared != no && test $VERSIONING = no; then +if test $elf = yes && test $shared != no && test $VERSIONING = no; then echo "\ *** WARNING: You should not compile GNU libc without versioning. Not using *** versioning will introduce incompatibilities so that old binaries diff --git a/posix/regex.c b/posix/regex.c index cce218d..77a0758 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -1182,6 +1182,8 @@ PREFIX(print_double_string) (where, string1, size1, string2, size2) printf ("(null)"); else { + int cnt; + if (FIRST_STRING_P (where)) { for (this_char = where - string1; this_char < size1; this_char++) @@ -1190,8 +1192,16 @@ PREFIX(print_double_string) (where, string1, size1, string2, size2) where = string2; } + cnt = 0; for (this_char = where - string2; this_char < size2; this_char++) - PUT_CHAR (string2[this_char]); + { + PUT_CHAR (string2[this_char]); + if (++cnt > 100) + { + fputs ("...", stdout); + break; + } + } } } diff --git a/sysdeps/unix/sysv/aix/start.c b/sysdeps/unix/sysv/aix/start.c index 6c784f5..fd4d695 100644 --- a/sysdeps/unix/sysv/aix/start.c +++ b/sysdeps/unix/sysv/aix/start.c @@ -31,7 +31,7 @@ typedef unsigned char uchar; /* sb in libc/posix/types.h */ /* The first piece of initialized data. */ int __data_start = 0; -+#ifndef HAVE_ELF +#ifndef HAVE_ELF /* Since gcc/crtstuff.c won't define it unless the ELF format is used we will need to define it here. */ void *__dso_handle = NULL;