1 --- rpm-4.4.1/rpmio/macro.c.orig 2005-01-26 04:39:58.000000000 +0100
2 +++ rpm-4.4.1/rpmio/macro.c 2005-04-10 23:25:02.000000000 +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));
24 tbuf[slen] = '\0'; /* XXX just in case */
25 strncpy(sbuf, tbuf, (slen - mb->nb + 1));
32 rpmExpand(const char *arg, ...)
34 - char buf[BUFSIZ], *p, *pe;
35 + static char buf[BUFSIZ];
42 rpmGetPath(const char *path, ...)
45 + static char buf[BUFSIZ];