--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: worklog: formatting error if the delta_time == 0
- From: Jon Daley <debian@jon.limedaley.com>
- Date: Fri, 25 Sep 2009 14:20:26 -0400
- Message-id: <20090925182026.17341.56089.reportbug@orange.limedaley.com>
Package: worklog
Version: 1.8-4
Severity: minor
Tags: patch
There is a bug when delta=0 (granted, hard to ever get to) but the output is wrong, and
it is a trival fix. If this fix isn't applied, the temps string for the start of the
line is also used within the brackets
Modified: vendor/worklog/mine/worklog.c
===================================================================
--- vendor/worklog/mine/worklog.c 2009-09-25 18:10:14 UTC (rev 9553)
+++ vendor/worklog/mine/worklog.c 2009-09-25 18:12:06 UTC (rev 9554)
@@ -629,6 +629,11 @@
}
}
}
+ else
+ {
+ // make sure to always set temps
+ sprintf(temps,"0.00 seconds") ;
+ }
fprintf(f,": %s : finished ",temps) ;
fprintf(fa," : [%s] : finished ",temps) ;
time(&t) ;
-- System Information:
Debian Release: 5.0.3
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages worklog depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
worklog recommends no packages.
worklog suggests no packages.
-- no debconf information
--- End Message ---