forked from Mirrors/freeswitch
FS-3896 --resolve that sizeof was incorrect
This commit is contained in:
parent
b05ca56adf
commit
5e66db63f1
@ -180,7 +180,7 @@ int tport_open_log(tport_master_t *mr, tagi_t *tags)
|
||||
return n;
|
||||
}
|
||||
|
||||
memcpy(port, p, sizeof(p));
|
||||
strncpy(port, p, sizeof(port));
|
||||
|
||||
*p = '\0';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user