]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - squidguard_report.c
Removed a few unecessary strings copy.
[thirdparty/sarg.git] / squidguard_report.c
index 9bb24b33612e8d3af2d113bcefc579406d615824..1132df8090c166535ef04d822f96c99fcbc840cd 100644 (file)
@@ -150,9 +150,8 @@ void squidguard_report(void)
 
       get_usertab_name(user,name,sizeof(name));
 
-      if(dotinuser && strstr(name,"_")) {
-         str2=(char *)subs(name,"_",".");
-         strcpy(name,str2);
+      if(dotinuser && strchr(name,'_')) {
+         subs(name,sizeof(name),"_",".");
       }
 
      if(SquidGuardReportLimit) {