[mICQ] strftime woes aka segfault at first timestamped output (was: ANNOUNCEMENT: mICQ 0.5.3 released)
Rüdiger Kuhlmann
micq-list-CKH1bDCG6x4V at ruediger-kuhlmann.de
Mon Apr 23 22:06:02 CEST 2007
>--[Rüdiger Kuhlmann]--<micq-list-CKH1bDCG6x4V at ruediger-kuhlmann.de>
> # ANNOUNCEMENT: mICQ 0.5.3 #
Since several people were bitten by it, here's the trivial fix:
$ cvs diff -I Id: -r 1.86 -r 1.87 util_str.c
Index: util_str.c
===================================================================
RCS file: /var/lib/cvs/micq/src/util_str.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -I Id: -r1.86 -r1.87
--- util_str.c 17 Apr 2007 21:13:42 -0000 1.86
+++ util_str.c 22 Apr 2007 19:10:55 -0000 1.87
@@ -412,7 +412,8 @@
stamp = NULL;
}
now = *localtime (&nowsec);
-
+
+ s_init (&str, "", 32);
while (!rc)
{
rc = strftime (str.txt, str.max,
--
"See, free nations are peaceful nations. Free nations don't attack
each other. Free nations don't develop weapons of mass destruction."
- George W. Bush, Milwaukee, Wis., Oct. 3, 2003
More information about the mICQ-List
mailing list