Whoops, with the new world order we need to make sure we allocate memory
[mmh] / sbr / fmt_compile.c
index 148d35c..3a6202d 100644 (file)
@@ -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)
@@ -877,7 +877,7 @@ fmt_findcomp(char *component)
  */
 
 struct comp *
-fmt_findcasecmp(char *component)
+fmt_findcasecomp(char *component)
 {
     struct comp *cm;