summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2009-04-17 12:42:41 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-04-17 12:42:41 +0000
commit3400958570dc1c8dfd92add21852e4caebf96004 (patch)
tree0fec05cd45da019d8522c5e67f8065c602da351d
parent4ec53567a542c5b6f9f0eb4ddda5942396d10aab (diff)
downloadirssi-3400958570dc1c8dfd92add21852e4caebf96004.zip
Ensure type matches format string in /uptime.
Garbled output could happen if time_t was a different size from long. bug #665 git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5060 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/fe-core-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c
index 5caf87d3..0302cbfa 100644
--- a/src/fe-common/core/fe-core-commands.c
+++ b/src/fe-common/core/fe-core-commands.c
@@ -172,7 +172,7 @@ static void cmd_nick(const char *data, SERVER_REC *server)
/* SYNTAX: UPTIME */
static void cmd_uptime(char *data)
{
- time_t uptime;
+ long uptime;
g_return_if_fail(data != NULL);