(collate_read): Fix printing of error message.
authordrepper <drepper>
Sat, 28 Apr 2007 06:40:48 +0000 (06:40 +0000)
committerdrepper <drepper>
Sat, 28 Apr 2007 06:40:48 +0000 (06:40 +0000)
locale/programs/ld-collate.c

index a4f491c..0656a97 100644 (file)
@@ -3154,8 +3154,9 @@ error while adding equivalent collating symbol"));
              if (sp == NULL)
                {
                  lr_error (ldfile, _("\
-%s: unknown section name `%s'"),
-                           "LC_COLLATE", arg->val.str.startmb);
+%s: unknown section name `%.*s'"),
+                           "LC_COLLATE", (int) arg->val.str.lenmb,
+                           arg->val.str.startmb);
                  /* We use the error section.  */
                  collate->current_section = &collate->error_section;