diff options
Diffstat (limited to 'time/gnotime/patches/patch-af')
-rw-r--r-- | time/gnotime/patches/patch-af | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/time/gnotime/patches/patch-af b/time/gnotime/patches/patch-af new file mode 100644 index 00000000000..508475a0b6d --- /dev/null +++ b/time/gnotime/patches/patch-af @@ -0,0 +1,27 @@ +$NetBSD: patch-af,v 1.1 2004/11/24 22:35:25 kristerw Exp $ + +--- src/log.c.orig Wed Nov 24 22:27:06 2004 ++++ src/log.c Wed Nov 24 22:28:10 2004 +@@ -37,6 +37,8 @@ + char *filename; + GnomeVFSHandle *handle; + GnomeVFSResult result; ++ int rc; ++ GnomeVFSFileSize bytes_written; + + g_return_val_if_fail (logstr != NULL, FALSE); + +@@ -67,12 +69,11 @@ + t = time(NULL); + + /* Translators: Format to use in the gnotime logfile */ +- int rc = strftime (date, sizeof (date), _("%b %d %H:%M:%S"), localtime(&t)); ++ rc = strftime (date, sizeof (date), _("%b %d %H:%M:%S"), localtime(&t)); + if (0 >= rc) strcpy (date, "???"); + + /* Append to end of file */ + gnome_vfs_seek (handle, GNOME_VFS_SEEK_END, 0); +- GnomeVFSFileSize bytes_written; + gnome_vfs_write (handle, date, strlen(date), &bytes_written); + gnome_vfs_write (handle, logstr, strlen(logstr), &bytes_written); + gnome_vfs_write (handle, "\n", 1, &bytes_written); |