Index: libedataserver/e-data-server-util.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-data-server-util.c,v
retrieving revision 1.3
diff -u -p -r1.3 e-data-server-util.c
--- libedataserver/e-data-server-util.c	2 Jun 2006 12:34:06 -0000	1.3
+++ libedataserver/e-data-server-util.c	10 Nov 2006 04:33:48 -0000
@@ -335,11 +335,11 @@ e_util_utf8_strcasecmp (const gchar *s1,
  **/
 size_t e_strftime(char *s, size_t max, const char *fmt, const struct tm *tm)
 {
+	size_t ret;
 #ifdef HAVE_LKSTRFTIME
-	return strftime(s, max, fmt, tm);
+	ret = strftime(s, max, fmt, tm);
 #else
 	char *c, *ffmt, *ff;
-	size_t ret;
 
 	ffmt = g_strdup(fmt);
 	ff = ffmt;
@@ -365,8 +365,10 @@ size_t e_strftime(char *s, size_t max, c
 
 	ret = strftime(s, max, ffmt, tm);
 	g_free(ffmt);
-	return ret;
 #endif
+	if (ret == 0 && max > 0)
+		s[0] = '\0';
+	return ret;
 }
 
 /** 
