summaryrefslogtreecommitdiffstats
path: root/contrib/diff/src
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2016-06-25 10:08:04 +0000
committered <ed@FreeBSD.org>2016-06-25 10:08:04 +0000
commit061f244c2d09522a30b3b83f4ce8d01f2628a422 (patch)
treee58704f5e46c6f4449b093fa2ec83c9039deebf2 /contrib/diff/src
parent0c3043629ef64c112ed0b12479dba33d286795cf (diff)
downloadFreeBSD-src-061f244c2d09522a30b3b83f4ce8d01f2628a422.zip
FreeBSD-src-061f244c2d09522a30b3b83f4ce8d01f2628a422.tar.gz
MFC r300775:
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>.
Diffstat (limited to 'contrib/diff/src')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud