aboutsummaryrefslogtreecommitdiff
path: root/libbb/last_char_is.c
AgeCommit message (Collapse)Author
2002-12-03Save 10 bytes or so, last_patch_70 from Vladimir N. OleynikGlenn L McGrath
2001-07-07Avoid a segfault (detected by Fabio FerrariEric Andersen
<fabio.ferrari@digitro.com.br> in the wget applet) when concat_path_file() or last_char_is() were fed a NULL. -Erik
2001-06-29Add some missing includes to kill warnings when building with the defaultManuel Novoa III
Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c.
2001-05-15Patch from Vladimir:Eric Andersen
1) fixed a bug that could crash df, mount, and umount applets if the root device name was longer then the word "root" (/dev/loop1 vs /dev/root) - 2) severl functions needed static declaration in the umount applet 3) update declaration for function in last_char_is() in libbb
2001-05-07This is Vladimir's update to last_char_is(). Since 'char *' isEric Andersen
the least common denominator, I modified it to use that (not const), which will minimize the need for casting elsewhere.
2001-04-26Another nice cleanup from Larry. This adds a new last_char_is() function andEric Andersen
uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik