void logwtmp(char *param_1,char *param_2,char *param_3)

{
  undefined2 local_190 [2];
  __pid_t local_18c;
  char acStack_188 [36];
  char acStack_164 [32];
  char acStack_144 [264];
  timeval atStack_3c [5];
  
  memset(local_190,0,0x180)   //possible issue identified - semgrep
  if ((param_2 == (char *)0x0) || (local_190[0] = 7, *param_2 == '\0')) {
    local_190[0] = 8;
  }
  local_18c = getpid();
  strncpy(acStack_188,param_1,0x1f)   //possible issue identified - semgrep
  strncpy(acStack_164,param_2,0x1f)   //possible issue identified - semgrep
  strncpy(acStack_144,param_3,0xff)   //possible issue identified - semgrep
  gettimeofday(atStack_3c,(__timezone_ptr_t)0x0);
  updwtmp(0xeb0,local_190);
  return;
}