]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - datafile.c
Protect ip2name against buffer overflows and replace characters that are valid in...
[thirdparty/sarg.git] / datafile.c
index 3df03fe2ac3de788c122caf5cd8acad2d149fbe2..c94ec408145db923a60d6e538eb8fd465adfa145 100644 (file)
@@ -95,7 +95,7 @@ void data_file(char *tmp)
          if(strcmp(Ip2Name,"yes") == 0) {
             if(strcmp(accip,ipantes) != 0) {
                strcpy(ipantes,accip);
-               ip2name(accip);
+               ip2name(accip,sizeof(accip));
                strcpy(nameantes,accip);
             } 
            else strcpy(accip,nameantes);