summaryrefslogtreecommitdiff
path: root/time/strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/strptime.c')
-rw-r--r--time/strptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time/strptime.c b/time/strptime.c
index 89cfa8e2a4..fd457af6c0 100644
--- a/time/strptime.c
+++ b/time/strptime.c
@@ -537,7 +537,7 @@ strptime_internal (buf, format, tm, decided)
case 'y':
/* Match year within century. */
get_number (0, 99);
- tm->tm_year = val;
+ tm->tm_year = val >= 50 ? val : val + 100;
break;
case 'Y':
/* Match year including century number. */