From 8366f135cfca005564388adb63d5c7a87c7634ea Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Mon, 19 Nov 2012 14:18:55 -0500 Subject: [PATCH] Whoops, with the new world order we need to make sure we allocate memory for all strings in format instructions. --- sbr/fmt_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 57bf516..3a6202d 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -264,7 +264,7 @@ static struct ftable functable[] = { } while (0) #define LV(type, value) do { NEW(type,0,0); fp->f_value = (value); } while (0) -#define LS(type, str) do { NEW(type,0,0); fp->f_text = (str); fp->f_flags |= FF_STRALLOC; } while (0) +#define LS(type, str) do { NEW(type,0,0); fp->f_text = getcpy(str); fp->f_flags |= FF_STRALLOC; } while (0) #define PUTCOMP(comp) do { NEW(FT_COMP,0,0); ADDC(comp); } while (0) #define PUTLIT(str) do { NEW(FT_LIT,0,0); fp->f_text = getcpy(str); fp->f_flags |= FF_STRALLOC; } while (0) -- 1.7.10.4