pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/26724: bitchx dump on ports-sparc64 when joining a channel on efnet
>Number: 26724
>Category: pkg
>Synopsis: bitchx dump on ports-sparc64 when joining a channel on efnet
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 20 08:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Eric AUGE
>Release: NetBSD 2.0_BETA
>Organization:
-
>Environment:
NetBSD voodoo.no.phear.org 2.0_BETA NetBSD 2.0_BETA (VooDoo) #2: Sat May 29
17:44:11 CEST 2004
root%voodoo.no.phear.org@localhost:/usr/obj/sys/arch/sparc64/compile/VOODOO
sparc64
>Description:
BitchX segfault with a "Bus Error" message when joining a channel
under efnet or some other irc networks.
>How-To-Repeat:
with the latest bitchx package, connect to efnet and join a channel.
>Fix:
small patch (bitchx crew says there is other 64 bits arch problems):
--- numbers.c.orig 2004-08-18 10:08:17.000000000 +0200
+++ numbers.c 2004-08-18 10:06:22.000000000 +0200
@@ -1463,7 +1463,7 @@
if (!ArgList[1] || !*ArgList[1])
break;
- sscanf(ArgList[1], "%lu", &tme);
+ sscanf(ArgList[1], "%u", &tme);
strcpy(this_sucks, ctime(&tme));
this_sucks[strlen(this_sucks)-1] = '\0';
@@ -1474,16 +1474,16 @@
else
{
char cts[80], pts[80], ots[80];
- sscanf(ArgList[2], "%lu", &tme);
+ sscanf(ArgList[2], "%u", &tme);
strcpy(cts, ctime(&tme));
cts[strlen(cts)-1] = '\0';
- sscanf(ArgList[2], "%lu", &tme);
+ sscanf(ArgList[2], "%u", &tme);
strcpy(pts, ctime(&tme));
pts[strlen(pts)-1] = '\0';
ots[0] = 0;
if (ArgList[3])
{
- sscanf(ArgList[3], "%lu", &tme);
+ sscanf(ArgList[3], "%u", &tme);
strcpy(ots, ctime(&tme));
}
ots[strlen(ots)-1] = '\0';
>Release-Note:
>Audit-Trail:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index