fix ipkg segfaults
authorNicolas Thill <nico@openwrt.org>
Mon, 19 Dec 2005 14:44:05 +0000 (14:44 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 19 Dec 2005 14:44:05 +0000 (14:44 +0000)
SVN-Revision: 2732

openwrt/package/busybox/patches/911-ipkg.patch

index 66579e4fc1656ae377667cff74ed0b23d3aecdcd..c9fc6b8b6197624b2be1563ad63c795ece2b2a52 100644 (file)
@@ -12791,7 +12791,7 @@ diff -ruN busybox-1.1.0-pre1-old/archival/libipkg/sprintf_alloc.h busybox-1.1.0-
 +
 +#include "libbb.h"
 +
-+#define sprintf_alloc  bb_xasprintf
++#define sprintf_alloc(str, fmt, args...)  *str = bb_xasprintf(fmt, ## args)
 +
 +#endif
 diff -ruN busybox-1.1.0-pre1-old/archival/libipkg/str_list.c busybox-1.1.0-pre1-new/archival/libipkg/str_list.c