Bug#524374: function PX_timestamp2string bad time conversion

2009-04-16 Thread Carlos

Package: pxlib1
Version: 0.6.3-1

The function PX_timestam2string located in paradox.c , make a bad conversion of 
time part (H:m:s) of timestamp
I found that bug is in type casting double to long,  when calculate the module 
( % operator) to extract seconds of timestamp.

I suggest that use the fmod function, located in lib math

I am using Debian GNU/Linux 5.0 Lenny kernel 2.6.26-1-686
 and libc6 2.7-18






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#524374: function PX_timestamp2string bad time conversion

2009-04-16 Thread Uwe Steinmann
On Thu, Apr 16, 2009 at 12:59:57PM -0300, Carlos wrote:
 Package: pxlib1
 Version: 0.6.3-1

 The function PX_timestam2string located in paradox.c , make a bad conversion 
 of time part (H:m:s) of timestamp
 I found that bug is in type casting double to long,  when calculate the 
 module ( % operator) to extract seconds of timestamp.

 I suggest that use the fmod function, located in lib math

I'm not sure, but is this really a problem in this case. 
What should happen, except for a too large double value that does
not fit into a long value.

  Uwe
-- 
  MMK GmbH, Fleyer Str. 196, 58097 Hagen
  uwe.steinm...@mmk-hagen.de
  Tel: 02331 840446Fax: 02331 843920


signature.asc
Description: Digital signature