{
char buf[17];
- sprintf (buf, "\\%zo", cnt);
+ snprintf (buf, sizeof buf, "\\%Zo", cnt);
if (!be_quiet)
error (0, 0, _("\
{
char buf[17];
- sprintf (buf, "\\%zo", cnt);
+ snprintf (buf, sizeof buf, "\\%Zo", cnt);
if (!be_quiet)
error (0, 0, _("\
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;
{
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.
if (*str != '+' && *str != '-')
{
if (!be_quiet)
- error (0, 0, _("%s: direction flag in string %zd in `era' field"
- " is not '+' nor '-'"),
+ error (0, 0,
+ _("%s: direction flag in string %Zd in `era' field"
+ " is not '+' nor '-'"),
"LC_TIME", idx + 1);
/* Default arbitrarily to '+'. */
time->era_entries[idx].direction = '+';
if (*++str != ':')
{
if (!be_quiet)
- error (0, 0, _("%s: direction flag in string %zd in `era' field"
- " is not a single character"),
+ error (0, 0,
+ _("%s: direction flag in string %Zd in `era' field"
+ " is not a single character"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
}
if (endp == str)
{
if (!be_quiet)
- error (0, 0, _("%s: invalid number for offset in string %zd in"
+ error (0, 0, _("%s: invalid number for offset in string %Zd in"
" `era' field"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
{
if (!be_quiet)
error (0, 0, _("%s: garbage at end of offset value in"
- " string %zd in `era' field"),
+ " string %Zd in `era' field"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
}
{
invalid_start_date:
if (!be_quiet)
- error (0, 0, _("%s: invalid starting date in string %zd in"
+ error (0, 0, _("%s: invalid starting date in string %Zd in"
" `era' field"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
garbage_start_date:
if (!be_quiet)
error (0, 0, _("%s: garbage at end of starting date "
- "in string %zd in `era' field "),
+ "in string %Zd in `era' field "),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
}
&& !__isleap (time->era_entries[idx].start_date[0])))
&& !be_quiet)
error (0, 0, _("%s: starting date is invalid in"
- " string %zd in `era' field"),
+ " string %Zd in `era' field"),
"LC_TIME", idx + 1);
}
}
{
invalid_stop_date:
if (!be_quiet)
- error (0, 0, _("%s: invalid stopping date in string %zd in"
+ error (0, 0, _("%s: invalid stopping date in string %Zd in"
" `era' field"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
garbage_stop_date:
if (!be_quiet)
error (0, 0, _("%s: garbage at end of stopping date "
- "in string %zd in `era' field"),
+ "in string %Zd in `era' field"),
"LC_TIME", idx + 1);
(void) strsep (&str, ":");
}
&& !__isleap (time->era_entries[idx].stop_date[0])))
&& !be_quiet)
error (0, 0, _("%s: stopping date is invalid in"
- " string %zd in `era' field"),
+ " string %Zd in `era' field"),
"LC_TIME", idx + 1);
}
}
if (str == NULL || *str == '\0')
{
if (!be_quiet)
- error (0, 0, _("%s: missing era name in string %zd in `era'"
+ error (0, 0, _("%s: missing era name in string %Zd in `era'"
" field"), "LC_TIME", idx + 1);
time->era_entries[idx].name =
time->era_entries[idx].format = "";
if (str == NULL || *str == '\0')
{
if (!be_quiet)
- error (0, 0, _("%s: missing era format in string %zd"
+ error (0, 0, _("%s: missing era format in string %Zd"
" in `era' field"),
"LC_TIME", idx + 1);
time->era_entries[idx].name =