fixes for core dumps

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1409 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-11-23 05:36:55 +00:00
parent 9394bc404f
commit 05b94c02a6

View File

@ -2,6 +2,7 @@
* date.c -- utility functions to handle the date (adjusting, get *
* current date, etc.) for xacc (X-Accountant) *
* Copyright (C) 1997 Robin D. Clark *
* Copyright (C) 1998 Linas Vepstas *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
@ -59,6 +60,7 @@ DateFormat dateFormat = DATE_FORMAT_US;
void
printDate (char * buff, int day, int month, int year)
{
if (!buff) return;
/* Note that when printing year, we use %-4d in format string;
* this causes a one, two or three-digit year to be left-adjusted
@ -90,6 +92,7 @@ void
printDateSecs (char * buff, time_t t)
{
struct tm *theTime;
if (!buff) return;
theTime = localtime(&t);