2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

write ASCII NUL as '\0', not 0

This commit is contained in:
Andreas Gustafsson 2000-08-23 02:21:16 +00:00
parent 9ce72fc748
commit 6cab5e204c

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: lex.c,v 1.35 2000/08/01 01:29:29 tale Exp $ */ /* $Id: lex.c,v 1.36 2000/08/23 02:21:16 gson Exp $ */
#include <config.h> #include <config.h>
@ -582,7 +582,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
} }
INSIST(remaining > 0); INSIST(remaining > 0);
*curr++ = c; *curr++ = c;
*curr = 0; *curr = '\0';
remaining--; remaining--;
break; break;
case lexstate_maybecomment: case lexstate_maybecomment:
@ -666,7 +666,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
INSIST(remaining > 0); INSIST(remaining > 0);
prev = curr; prev = curr;
*curr++ = c; *curr++ = c;
*curr = 0; *curr = '\0';
remaining--; remaining--;
} }
break; break;