coreboot/payloads/libpayload/libc
Jeremy Compostella 570b248381 UPSTREAM: 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

BUG=None
BRANCH=None
TEST=None

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>

Change-Id: I49925040d951dffb9c11425334674d8d498821f1
Reviewed-on: https://chromium-review.googlesource.com/383692
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-09-09 12:33:31 -07:00
..
64bit_div.c
args.c
console.c
coreboot.c UPSTREAM: libpayload: Drop superfluous "continue" 2016-08-04 23:37:46 -07:00
ctype.c
die.c
exec.c
fmap.c
getopt_long.c
hexdump.c
ipchecksum.c
lib.c
libgcc.c
Makefile.inc
malloc.c libpayload/libc: Fix memset/sizeof usage 2016-04-06 13:33:07 +02:00
memory.c
printf.c
qsort.c
rand.c
readline.c
string.c UPSTREAM: libpayload: Fix strtok_r 2016-09-09 12:33:31 -07:00
strlcpy.c
sysinfo.c
time.c