fix buffer overflow found by zacts from IRC (bad length calculation)

now zsh and mksh are even… :|
This commit is contained in:
tg
2014-11-19 18:44:11 +00:00
parent 8d9d86ceab
commit 9b31399aec
3 changed files with 7 additions and 7 deletions

4
sh.h
View File

@@ -169,9 +169,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.702 2014/11/14 20:21:29 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.703 2014/11/19 18:44:11 tg Exp $");
#endif
#define MKSH_VERSION "R50 2014/11/14"
#define MKSH_VERSION "R50 2014/11/19"
/* arithmetic types: C implementation */
#if !HAVE_CAN_INTTYPES