freebsd-ports/net-im/centericq/files/patch-kkstrtext-0.1_kkstrtext.h
Cheng-Lung Sung e9479c379a - Respect CXXFLAGS
- Fix some annoying memory leekage bugs that tends to core dumps.

PR:		ports/101688
Submitted by:	Stanislav Sedov <ssedov_AT_mbsd dot msk dot ru>
2006-08-10 10:28:03 +00:00

11 lines
365 B
C

--- kkstrtext-0.1/kkstrtext.h.orig Wed Aug 9 10:50:49 2006
+++ kkstrtext-0.1/kkstrtext.h Wed Aug 9 10:51:12 2006
@@ -87,7 +87,7 @@
{ \
va_list vgs__ap; char vgs__buf[1024]; \
va_start(vgs__ap, fmt); \
- vsprintf(vgs__buf, fmt, vgs__ap); c = vgs__buf; \
+ vsnprintf(vgs__buf, sizeof(vgs__buf), fmt, vgs__ap); c = vgs__buf; \
va_end(vgs__ap); \
}