aboutsummaryrefslogtreecommitdiff
path: root/locale/programs/ld-ctype.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-20 19:21:35 +0000
committerRoland McGrath <roland@gnu.org>2000-03-20 19:21:35 +0000
commit5d431a3ef0a310ab042e2cf5c71a4ad59fd9184a (patch)
tree888ababd652fab3def6bb2fdbe47bc9eece94bdb /locale/programs/ld-ctype.c
parentd3564d01a715d65be18a99aaaaa36ed35b59eba2 (diff)
downloadglibc-5d431a3ef0a310ab042e2cf5c71a4ad59fd9184a.tar
glibc-5d431a3ef0a310ab042e2cf5c71a4ad59fd9184a.tar.gz
glibc-5d431a3ef0a310ab042e2cf5c71a4ad59fd9184a.tar.bz2
glibc-5d431a3ef0a310ab042e2cf5c71a4ad59fd9184a.zip
* locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
* locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
Diffstat (limited to 'locale/programs/ld-ctype.c')
-rw-r--r--locale/programs/ld-ctype.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index b0b9144c14..21f271f706 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -466,7 +466,7 @@ character L'\\u%0*x' in class `%s' must not be in class `%s'"),
{
char buf[17];
- sprintf (buf, "\\%zo", cnt);
+ snprintf (buf, sizeof buf, "\\%Zo", cnt);
if (!be_quiet)
error (0, 0, _("\
@@ -481,7 +481,7 @@ character '%s' in class `%s' must be in class `%s'"),
{
char buf[17];
- sprintf (buf, "\\%zo", cnt);
+ snprintf (buf, sizeof buf, "\\%Zo", cnt);
if (!be_quiet)
error (0, 0, _("\
@@ -1051,7 +1051,7 @@ ctype_class_new (struct linereader *lr, struct locale_ctype_t *ctype,
if (ctype->nr_charclass == MAX_NR_CHARCLASS)
/* Exit code 2 is prescribed in P1003.2b. */
error (2, 0, _("\
-implementation limit: no more than %zd character classes allowed"),
+implementation limit: no more than %Zd character classes allowed"),
MAX_NR_CHARCLASS);
ctype->classnames[ctype->nr_charclass++] = name;
@@ -3051,7 +3051,7 @@ allocate_arrays (struct locale_ctype_t *ctype, struct charmap_t *charmap,
{
size_t idx;
size_t width_table_size;
-
+
/* First we have to decide how we organize the arrays. It is easy
for a one-byte character set. But multi-byte character set
cannot be stored flat because the chars might be sparsely used.