summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-05-26 20:55:15 +0000
committered <ed@FreeBSD.org>2016-05-26 20:55:15 +0000
commit284a864941420a45c138e68a75dd73ba8c3ebd34 (patch)
treed93259dc0ebd71c657b1fca11ec7b3a258f1ac84 /lib/libc/regex/engine.c
parente5ef05be3737033c0da5ab5f00022773c4274dcb (diff)
downloadFreeBSD-src-284a864941420a45c138e68a75dd73ba8c3ebd34.zip
FreeBSD-src-284a864941420a45c138e68a75dd73ba8c3ebd34.tar.gz
Let l64a() properly null terminate its result.
Though the buffer used by l64a() is initialized with null bytes, repetetive calls may end up having trailing garbage of previous invocations because we don't end up terminating the string. Instead of importing NetBSD's fix, use this opportunity to simplify this function dramatically, for example by just storing the Base64 character set in a string. There is also no need to do the bitmasking, as we can just use the proper integer type from <stdint.h>. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D6511
Diffstat (limited to 'lib/libc/regex/engine.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud