strfunc: always null-terminate the output buffer
authorH. Peter Anvin <hpa@zytor.com>
Sun, 15 Jun 2008 03:53:45 +0000 (20:53 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 15 Jun 2008 03:53:45 +0000 (20:53 -0700)
commit2cb033e0d94a229810b110a49a5052ef1a4dc7db
treec47f829721f3ea0a8c2c794a622837132afe50b7
parent518df30308c555a8f8d7e359cb31688af0c686db
strfunc: always null-terminate the output buffer

Make sure that the buffer is always null-terminated, even though we do
have to use the length, since the string can (and often will) have
embedded nulls.
strfunc.c