diff --git a/ChangeLog b/ChangeLog index b592a46f96..845cb5f2c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +Mon Jan 27 03:30:06 2003 NAKAMURA Usaku + + * error.c (get_syserror): use snprintf() instead of sprintf(). pointed + out by knu. + Mon Jan 27 02:06:38 2003 NAKAMURA Usaku - * error.c (get_syserror): some Windows' errno have 5 digits. + * error.c (get_syserror): some Windows' errno have 5 digits. pointed + out by znz. Sun Jan 26 19:23:10 2003 NAKAMURA Usaku @@ -221,7 +227,7 @@ Sun Jan 19 23:08:18 2003 Akinori MUSHA Sun Jan 19 14:01:12 2003 UENO Katsuhiro - * regex.c (is_in_list): should work weill with UTF-8. + * regex.c (is_in_list): should work well with UTF-8. * regex.c (re_match_exec): ditto. diff --git a/error.c b/error.c index 272390139c..fc4e08ff07 100644 --- a/error.c +++ b/error.c @@ -497,7 +497,7 @@ get_syserr(int n) if (!st_lookup(syserr_tbl, n, &error)) { char name[8]; /* some Windows' errno have 5 digits. */ - sprintf(name, "E%03d", n); + snprintf(name, sizeof(name), "E%03d", n); error = set_syserr(n, name); } return error;