From 7d1a39b24a173de797b279629fcb31b6d313bc51 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 2 Aug 2002 19:58:43 +0000 Subject: [PATCH] Tweak an error message. --- src/ChangeLog | 5 +++++ src/read-mo.c | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b6788045f..91d3dccb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-02 Bruno Haible + + * read-mo.c (get_sysdep_string): Make the error message easier to + translate. + 2002-07-25 Bruno Haible * gettext-0.11.4 released. diff --git a/src/read-mo.c b/src/read-mo.c index 4d2ebb004..998e7e0ed 100644 --- a/src/read-mo.c +++ b/src/read-mo.c @@ -187,9 +187,13 @@ get_sysdep_string (bfp, offset, header, lengthp) if (ss_offset + ss_length > bfp->size) error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); if (!(ss_length > 0 && bfp->data[ss_offset + ss_length - 1] == '\0')) - error (EXIT_FAILURE, 0, - _("file \"%s\" contains a not NUL terminated sysdep segment"), - bfp->filename); + { + char location[30]; + sprintf (location, "sysdep_segment[%u]", (unsigned int) sysdepref); + error (EXIT_FAILURE, 0, + _("file \"%s\" contains a not NUL terminated string, at %s"), + bfp->filename, location); + } length += 1 + strlen (bfp->data + ss_offset) + 1; } -- 2.47.2