diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2004-05-28 16:47:10 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2004-05-28 16:47:10 +0000 |
commit | 738e5f0bd1d184b0899e3bf6b475c9c847cc6098 (patch) | |
tree | 6b262624d85c630a771e3dd8d96969ae942e5791 /sysutils/gtk-imonc/files/patch-timer.c | |
parent | work around an Outlook bug, which assumes that after the (diff) |
* Upgrade to 0.6.2.
* Set maintainer to submitter.
Submitted by: Andreas Berg <aberg@doomnet.de>
Approved by: old maintainer
Diffstat (limited to '')
-rw-r--r-- | sysutils/gtk-imonc/files/patch-timer.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sysutils/gtk-imonc/files/patch-timer.c b/sysutils/gtk-imonc/files/patch-timer.c new file mode 100644 index 000000000000..fd2bbe871eb8 --- /dev/null +++ b/sysutils/gtk-imonc/files/patch-timer.c @@ -0,0 +1,30 @@ +--- src/timer.c.orig Mon May 17 23:58:51 2004 ++++ src/timer.c Tue May 18 00:18:15 2004 +@@ -298,14 +298,14 @@ + } + else + { +- tmpbytes = atoll (strtok (NULL, " ")); ++ tmpbytes = strtoll (strtok (NULL, " "), NULL, 10); + ibytes += tmpbytes; + row[i] = get_bytes (tmpbytes, + ibytebuf); + } + break; + case 9: /* OBytes */ +- tmpbytes = atoll (strtok (NULL, " ")); ++ tmpbytes = strtoll (strtok (NULL, " "), NULL, 10); + obytes += tmpbytes; + row[i] = get_bytes (tmpbytes, obytebuf); + break; +@@ -1148,8 +1148,8 @@ + } + else + { +- gtk_clist_set_text (GTK_CLIST (clist), j, 3, get_bytes(atoll(strtok(get_answer (fd)," ")), buf)); +- gtk_clist_set_text (GTK_CLIST (clist), j, 4, get_bytes(atoll(strtok(NULL, " ")), buf)); ++ gtk_clist_set_text (GTK_CLIST (clist), j, 3, get_bytes(strtoll(strtok(get_answer (fd)," "), NULL, 10), buf)); ++ gtk_clist_set_text (GTK_CLIST (clist), j, 4, get_bytes(strtoll(strtok(NULL, " "), NULL, 10), buf)); + } + + send_command (fd, "online-time pppoe"); |