aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/gnotime/files/patch-src::log.c
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/gnotime/files/patch-src::log.c')
-rw-r--r--deskutils/gnotime/files/patch-src::log.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/deskutils/gnotime/files/patch-src::log.c b/deskutils/gnotime/files/patch-src::log.c
new file mode 100644
index 00000000000..faf8296984b
--- /dev/null
+++ b/deskutils/gnotime/files/patch-src::log.c
@@ -0,0 +1,25 @@
+--- src/log.c.orig Thu Jul 8 00:23:54 2004
++++ src/log.c Thu Jul 8 00:24:18 2004
+@@ -37,6 +37,8 @@
+ char *filename;
+ GnomeVFSHandle *handle;
+ GnomeVFSResult result;
++ GnomeVFSFileSize bytes_written;
++ int rc;
+
+ 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);