From 06a5c360995f0b1589ea96fcb6a967c481bbb2b1 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sun, 10 Mar 2002 20:53:35 +0000 Subject: The main window's title is now just one localized string. This should make * gncal/main.c: The main window's title is now just one localized string. This should make l10n easier. * gncal/calendar-conduit.c: Move #define of G_LOG_DOMAIN to the top of the file. * gncal/calendar.h: * gncal/calendar.c: (calendar_save): Rewrote function. Does now try to restore the backup file if writing the calendar file failed. (Bugzilla #51662) Also, make fname argument const. * gncal/gncal-full-day.c: Renamed get_tm_range() to time_row_usage(), documented this function and cleaned it up. * gncal/gncal-week-view.c: Christian/me: Show week numbers. (Bugzilla #26377) * gncal/corba-cal-factory.h: s/corba_server_init/init_corba_server/ * gnomecard/sort.c: (gnomecard_do_sort_cards): Christian: Fixed a crash that occured if an empty card list was sorted. Also increased sort speed a bit. * libversit/vobject.c: (fakeCString): Christian: Fixed possible crashes by just returning an empty string if NULL is passed in. * gncal/calobj.c: (ical_object_create_from_vobject): Christian: Remove a now redundant error check. * gncal/main.h: * gncal/main.c: * gncal/calendar.c: (calendar_day_change): * gncal/prop.c: Christian/me: Calendar roll over at midnight. (Bugzilla #6435) svn path=/trunk/; revision=16090 --- libversit/vobject.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libversit/vobject.c') diff --git a/libversit/vobject.c b/libversit/vobject.c index d685b04278..2df57c5927 100644 --- a/libversit/vobject.c +++ b/libversit/vobject.c @@ -1435,7 +1435,12 @@ DLLEXPORT(char*) fakeCString(const wchar_t *u) { char *s, *t; int len = uStrLen(u) + 1; + + if (!u) + return strdup(""); + t = s = (char*)malloc(len); + while (*u) { if (*u == (wchar_t)0x2028) *t = '\n'; -- cgit v1.2.3