Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: crashes when setting COLUMNS=0 or 1



On Jun 26, 12:03am, Bart Schaefer wrote:
}
} IPDEF5("COLUMNS", &zterm_columns, zlevar_gsu)

Oh, for pity's sake.  The definition of IPDEF5 never references the F
argument.

Index: Src/params.c
===================================================================
RCS file: /extra/cvsroot/zsh/zsh-4.0/Src/params.c,v
retrieving revision 1.48
diff -u -r1.48 params.c
--- Src/params.c        20 Dec 2011 17:13:38 -0000      1.48
+++ Src/params.c        26 Jun 2012 07:18:22 -0000
@@ -315,7 +315,7 @@
 IPDEF4("PPID", &ppid),
 IPDEF4("ZSH_SUBSHELL", &zsh_subshell),
 
-#define IPDEF5(A,B,F) {{NULL,A,PM_INTEGER|PM_SPECIAL},BR((void *)B),GSU(varinteger_gsu),10,0,NULL,NULL,NULL,0}
+#define IPDEF5(A,B,F) {{NULL,A,PM_INTEGER|PM_SPECIAL},BR((void *)B),GSU(F),10,0,NULL,NULL,NULL,0}
 IPDEF5("COLUMNS", &zterm_columns, zlevar_gsu),
 IPDEF5("LINES", &zterm_lines, zlevar_gsu),
 IPDEF5("OPTIND", &zoptind, varinteger_gsu),



Messages sorted by: Reverse Date, Date, Thread, Author