1 --- rpm-4.4.8/rpmio/macro.c.orig 2007-01-21 21:37:58.000000000 +0100
2 +++ rpm-4.4.8/rpmio/macro.c 2007-04-08 19:50:49.214644921 +0200
4 /*@globals rpmGlobalMacroContext @*/
5 /*@modifies mb, rpmGlobalMacroContext @*/
7 - char buf[BUFSIZ], *b, *be;
8 + static char buf[BUFSIZ];
15 if (mc == NULL) mc = rpmGlobalMacroContext;
17 - tbuf = alloca(slen + 1);
18 + tbuf = xmalloc(slen + 1);
19 memset(tbuf, 0, (slen + 1));
23 rpmError(RPMERR_BADSPEC, _("Macro expansion too big for target buffer\n"));
25 strncpy(sbuf, tbuf, (slen - mb->nb + 1));
32 rpmGetPath(const char *path, ...)
35 + static char buf[BUFSIZ];