summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/setenv.c
diff options
context:
space:
mode:
authormillert <>2010-06-02 12:58:12 +0000
committermillert <>2010-06-02 12:58:12 +0000
commit718f25c6853b9204ccdaaa6947c90c056989f2bd (patch)
treec03791883d555a70beaa5db06d879a58baf62eaa /src/lib/libc/stdlib/setenv.c
parent9743c2689178c056bcbd01ce76a31f5de0e87e01 (diff)
downloadopenbsd-718f25c6853b9204ccdaaa6947c90c056989f2bd.tar.gz
openbsd-718f25c6853b9204ccdaaa6947c90c056989f2bd.tar.bz2
openbsd-718f25c6853b9204ccdaaa6947c90c056989f2bd.zip
Avoid using and end pointer since strnlen(string, -1) is legal
and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@
Diffstat (limited to 'src/lib/libc/stdlib/setenv.c')
0 files changed, 0 insertions, 0 deletions