* 'master' of https://github.com/hillu/bro:
  BIFScanner: Make filename->symbol transformation more robust
This commit is contained in:
Jon Siwek 2014-12-01 12:08:07 -06:00
commit 20ddf1e62f

View file

@ -1,4 +1,5 @@
%{
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include "bif_arg.h"
@ -223,7 +224,7 @@ void init_alternative_mode()
for ( char* p = guard; *p; p++ )
{
if ( strchr("/.-", *p) )
if ( ! isalnum(*p) )
*p = '_';
}