about summary refs log tree commit diff
path: root/posix/bug-regex5.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/bug-regex5.c')
-rw-r--r--posix/bug-regex5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c
index f199ffbfd3..ee4d652157 100644
--- a/posix/bug-regex5.c
+++ b/posix/bug-regex5.c
@@ -41,7 +41,7 @@ main (void)
 	{
 	  char elem[256];
 	  idx = symb_table[2 * i + 1];
-	  strncpy (elem, (const char *) (extra + idx + 1), extra[idx]);
+	  strncpy (elem, extra + idx + 1, extra[idx]);
 	  elem[extra[idx]] = '\0';
 	  printf ("Found a collating element: %s\n", elem);
 	  ++found;