mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Merge branch 'master' of https://github.com/hillu/bro
* 'master' of https://github.com/hillu/bro: BIFScanner: Make filename->symbol transformation more robust
This commit is contained in:
commit
20ddf1e62f
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
%{
|
%{
|
||||||
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "bif_arg.h"
|
#include "bif_arg.h"
|
||||||
|
@ -223,7 +224,7 @@ void init_alternative_mode()
|
||||||
|
|
||||||
for ( char* p = guard; *p; p++ )
|
for ( char* p = guard; *p; p++ )
|
||||||
{
|
{
|
||||||
if ( strchr("/.-", *p) )
|
if ( ! isalnum(*p) )
|
||||||
*p = '_';
|
*p = '_';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue