coreboot-kgpe-d16/payloads/libpayload/libc
Jeremy Compostella 3ab8ce52f9 libpayload: Fix strtok_r
This patch makes strtok_r:
- handle the end of the string
- handle string that contains only delimiters
- do not set ptr outside of str

Change-Id: I49925040d951dffb9c11425334674d8d498821f1
Signed-off-by: Jeremy Compostella <jeremy.compostella@gmail.com>
Reviewed-on: https://review.coreboot.org/16524
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2016-09-08 21:11:34 +02:00
..
64bit_div.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
Makefile.inc libpayload: Add support for handling fmaps 2015-07-14 18:12:06 +02:00
args.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
console.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
coreboot.c libpayload: Drop superfluous "continue" 2016-07-31 19:17:27 +02:00
ctype.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
die.c libpayload: Add a new "die" function to fatally signal programming errors. 2014-09-15 17:37:13 +02:00
exec.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
fmap.c libpayload: Add support for handling fmaps 2015-07-14 18:12:06 +02:00
getopt_long.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
hexdump.c libpayload: hexdump: Use `p` as conversion specifier for pointers 2014-12-19 21:15:05 +01:00
ipchecksum.c
lib.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
libgcc.c lib: Unify log2() and related functions 2015-06-05 13:18:55 +02:00
malloc.c libpayload/libc: Fix memset/sizeof usage 2016-04-06 13:33:07 +02:00
memory.c libpayload: Fix default_memmove() implementation 2015-08-19 16:35:08 +00:00
printf.c libpayload: fix printf handling of unsigned long long 2014-12-30 20:54:23 +01:00
qsort.c libpayload: Fix whitespace errors 2013-06-27 14:46:43 +02:00
rand.c
readline.c Catch various cases in libpayload where malloc() or memalign() return NULL 2009-07-31 11:39:55 +00:00
string.c libpayload: Fix strtok_r 2016-09-08 21:11:34 +02:00
strlcpy.c libpayload: Implement strlcpy 2011-07-07 22:29:35 +02:00
sysinfo.c Reduce warnings/errors in libpayload when using picky compiler options 2011-06-30 20:41:23 +02:00
time.c libpayload: Fix compile error in time.c if nvram support is disabled 2015-08-10 18:10:00 +02:00