On 11/06/2011 11:00 AM, Gleb Natapov wrote:
The caller of qemu_timedate_diff() does not expect that tm it passes to the function will be modified, but mktime() is destructive and modifies its argument. Pass a copy of tm to it and set tm_isdst so that mktime() will not rely on it since its value may be outdated.
Ohhh, nice catch.
Signed-off-by: Gleb Natapov<g...@redhat.com>
Acked-by: Rik van Riel <r...@redhat.com> -- All rights reversed