Hey > Currently about a quarter of Bash's prompt control characters are supported, > this patch brings it up to about 70%
+ } else {
+ fmt = strncpy(xmalloc(end-prompt), prompt, end-prompt);
+ fmt[end-prompt] = '\0';
+ prompt = end+1;
+ }
Isn't fmt[end-prompt] = '\0'; writing past the allocated buffer?
--
Aleksander
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net
