Fix the quote price editor adds price data as wrong date. Bump the

PORTREVISION. More details by the submitter:

"gnucash quote price editor consume date string and convert the string by
strptime(3) then get time_t by mktime(3). And struct tm, a mktime argument
is not initialized and mktime detects insane structure and returns -1. So
the entry is always added as epoch -1 date."

PR:		ports/138410
Submitted by:	Takanori Watanabe <takawata@init-main.com>
This commit is contained in:
Jeremy Messenger 2010-10-03 17:04:08 +00:00
parent 7f1bc9ce2c
commit e9ddf6b3f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262355
2 changed files with 12 additions and 1 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= gnucash
PORTVERSION= 2.2.9
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= finance gnome
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION} \
http://www.gnucash.org/pub/gnucash/sources/stable/

View file

@ -0,0 +1,11 @@
--- src/app-utils/guile-util.c.orig 2008-01-08 10:06:47.000000000 +0900
+++ src/app-utils/guile-util.c 2009-09-01 03:04:30.000000000 +0900
@@ -1304,6 +1304,8 @@
g_return_val_if_fail(s && format, -1);
+ bzero(&tm, sizeof(tm));
+
if (!strptime(s, format, &tm))
return -1;