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

bindkey fix



% bindkey -s '\C-z' 'suspend\n'
attempt to free more than allocated.

*** Src/zle_main.c.str	Tue Aug  6 10:22:22 1996
--- Src/zle_main.c	Tue Aug  6 10:22:29 1996
***************
*** 1082,1088 ****
  
      zsfree(k->nam);
      if (k->str)
! 	zsfree(k->str);
      zfree(k, sizeof(struct key));
  }
  
--- 1082,1088 ----
  
      zsfree(k->nam);
      if (k->str)
! 	zfree(k->str, k->len);
      zfree(k, sizeof(struct key));
  }
  

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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