summary refs log tree commit diff
path: root/localedata/tests-mbwc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-10-31 15:12:51 +0000
committerUlrich Drepper <drepper@redhat.com>2008-10-31 15:12:51 +0000
commita5ff533ea135b92ddbbe9fc4e9a52c967586b578 (patch)
tree2204d7ed43b55139fb190b2d6fce6f4fc2741ee9 /localedata/tests-mbwc
parent4bed549a2277f911397ca59189ae71f79750f400 (diff)
downloadglibc-a5ff533ea135b92ddbbe9fc4e9a52c967586b578.tar.gz
glibc-a5ff533ea135b92ddbbe9fc4e9a52c967586b578.tar.xz
glibc-a5ff533ea135b92ddbbe9fc4e9a52c967586b578.zip
[BZ #6974]
	* sunrpc/rpc_main.c (mkfile_output): Properly handle filename
	without dot.  Properly terminate the string with a null byte.
	Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
Diffstat (limited to 'localedata/tests-mbwc')
-rw-r--r--localedata/tests-mbwc/dat_mbtowc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/localedata/tests-mbwc/dat_mbtowc.c b/localedata/tests-mbwc/dat_mbtowc.c
index 5168ed184d..95edb684d3 100644
--- a/localedata/tests-mbwc/dat_mbtowc.c
+++ b/localedata/tests-mbwc/dat_mbtowc.c
@@ -135,7 +135,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
 	  {
 	    { 0, 1, "\xfc\xe4\xf6",	MB_LEN_MAX },
 	    { 0, 1, "\177",	   	MB_LEN_MAX },
-	    { 0, 0, (char)NULL, 	MB_LEN_MAX },
+	    { 0, 0, NULL, 		MB_LEN_MAX },
 	  }
 	},
 	{
@@ -221,7 +221,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
 	  {
 	    { 0, 1, "ABC",	    MB_LEN_MAX },
 	    { 0, 1, "\177",	    MB_LEN_MAX },
-	    { 0, 0, (char)NULL, MB_LEN_MAX },
+	    { 0, 0, NULL,	    MB_LEN_MAX },
 	  }
 	},
 	{
@@ -305,7 +305,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
 	  {
 	    { 0, 1, "\244\242A",      MB_LEN_MAX },
 	    { 0, 1, "\177\244\242",   MB_LEN_MAX },
-	    { 0, 1, "",         MB_LEN_MAX },
+	    { 0, 1, "",		      MB_LEN_MAX },
 	  }
 	},
 	{
@@ -321,7 +321,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
 	  {
 	    { 0, 1, "\244\242A",      MB_LEN_MAX },
 	    { 0, 1, "\177\244\242",   MB_LEN_MAX },
-	    { 0, 0, (char)NULL, MB_LEN_MAX },
+	    { 0, 0, NULL,	      MB_LEN_MAX },
 	  }
 	},
 	{