[BusyBox] [PATCH] - updates malloc to xmalloc in vi.c

Vladimir N. Oleynik dzo at simtreas.ru
Tue Nov 13 02:51:38 UTC 2001


Hi, Steve.

I think, 
1) require add to vi_main atexit(cookmode); for set old terminal mode after 
"No enought memory"
2) convert malloc+memset to xcalloc:  text=, last_modifying_cmd=, t=
3) You losed 2 call malloc: status_buffer= and screen= 

> Here is a patch for vi that updates malloc to xmalloc. I think this
> patch
> now brings all applets into line in regards to using xmalloc, xcalloc,
> xrealloc
> and xstrdup calls rather than the standard library calls.


--w
vodz





More information about the busybox mailing list