Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 20 Jan 2013 11:51:49 +0100
From: Hiltjo Posthuma <hiltjo@...emadness.org>
To: musl@...ts.openwall.com
Subject: [PATCH] __tm_to_time: fix last month

Hi!

I noticed there is possibly a typo in src/time/__tm_to_time.c

When calculating the day of year for december it uses 335 which should
be 334 I think.

Test case: http://pastebin.com/WBMfqXhp

I attached a patch as attachment.

Kind regards,
Hiltjo Posthuma

Download attachment "0001-__tm_to_time-fix-last-month.patch" of type "application/octet-stream" (977 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.