Fix timestamp parsing (?) in topic who time.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 8 Apr 2008 02:06:50 +0000 (04:06 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 8 Apr 2008 02:06:50 +0000 (04:06 +0200)
lib/state.c

index f98ce38d0b90ac1ffab88fb18660d7ad030b6818..1b183185d75c5146e93b84672ba7ea7165f81e2c 100644 (file)
@@ -562,7 +562,7 @@ static void handle_333(struct irc_network_state *s, const struct irc_line *l)
                return;
        }
 
-       c->topic_set_time = atol(l->args[4]);
+       c->topic_set_time = strtoul(l->args[4], NULL, 0);
        c->topic_set_by = g_strdup(l->args[3]);
 }