Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Account for the null byte on strings. [github 3]

Thank you kmarsh.
  • Loading branch information...
commit c72c702d4e40ebbacd3d156eb989704d3ae7716f 1 parent 408e4d8
Michael G. Schwern authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 time64.c
4 time64.c
View
@@ -64,11 +64,11 @@ static const int julian_days_by_month[2][12] = {
{0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335},
};
-static char wday_name[7][3] = {
+static char wday_name[7][4] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
};
-static char mon_name[12][3] = {
+static char mon_name[12][4] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
Please sign in to comment.
Something went wrong with that request. Please try again.