mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
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…
x
Reference in New Issue
Block a user