string_intrinsics.c (compare_string): Use memcmp instead of strncmp to avoid tripping...
authorThomas Koenig <Thomas.Koenig@online.de>
Sun, 28 May 2006 20:25:15 +0000 (20:25 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 28 May 2006 20:25:15 +0000 (20:25 +0000)
commit6545ef83c162894776c23e0a9811d6cadc1bff66
treed10973bffbe6cff83f2b74ebd3c5762ac2392da0
parent375277f69d4536e142609d553df186586ee4ac8a
string_intrinsics.c (compare_string): Use memcmp instead of strncmp to avoid tripping over CHAR(0) in a string.

2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>

* intrinsics/string_intrinsics.c (compare_string):
Use memcmp instead of strncmp to avoid tripping over
CHAR(0) in a string.

2006-05-28  Thomas Koenig  <Thomas.Koenig@online.de>

* gfortran.dg/string_null_compare_1.f:  New test case.

From-SVN: r114175
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_null_compare_1.f [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/intrinsics/string_intrinsics.c