diff options
Diffstat (limited to 'usr.sbin/setkey/token.l')
-rw-r--r-- | usr.sbin/setkey/token.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/setkey/token.l b/usr.sbin/setkey/token.l index 9bea6ae..74c1e17 100644 --- a/usr.sbin/setkey/token.l +++ b/usr.sbin/setkey/token.l @@ -110,7 +110,7 @@ tagged { return(TAGGED); } /* count up for nl */ { char *p; - for (p = yytext; *p != NULL; p++) + for (p = yytext; *p != '\0'; p++) if (*p == '\n') lineno++; } @@ -221,7 +221,7 @@ any { return(ANY); } {quotedstring} { char *p = yytext; while (*++p != '"') ; - *p = NULL; + *p = '\0'; yytext++; yylval.val.len = yyleng - 2; yylval.val.buf = strdup(yytext); |