mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-23 23:28:18 -04:00
write ASCII NUL as '\0', not 0
This commit is contained in:
parent
9ce72fc748
commit
6cab5e204c
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* 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>
|
||||
|
||||
|
|
@ -582,7 +582,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
|||
}
|
||||
INSIST(remaining > 0);
|
||||
*curr++ = c;
|
||||
*curr = 0;
|
||||
*curr = '\0';
|
||||
remaining--;
|
||||
break;
|
||||
case lexstate_maybecomment:
|
||||
|
|
@ -666,7 +666,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
|||
INSIST(remaining > 0);
|
||||
prev = curr;
|
||||
*curr++ = c;
|
||||
*curr = 0;
|
||||
*curr = '\0';
|
||||
remaining--;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue