commit | 3a77652cd7cf30e03de979d55986632189a9c18f | [log] [tgz] |
---|---|---|
author | Philipp Maier <pmaier@sysmocom.de> | Thu Feb 22 12:00:00 2018 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Wed Mar 14 21:04:50 2018 +0000 |
tree | 8aed27dd2dc1cc1ca073614bf6cccc27a0e71f76 | |
parent | 5c56bc57616bb9cf2c66ec12e312a13e065b237c [diff] |
msc_mgcp: use more conceise error msg on truncation When a truncation check (osmo_strlcpy()) fails handle_error() is called with MGCP_ERR_NOMEM as cause code. Which finally results in an "out of memory" message. MGCP_ERR_NOMEM is only used for failed truncation checks, so it makes sense to choose a message that describes the cause of the problem better. - rename MGCP_ERR_NOMEM to MGCP_ERR_TOOLONG - replace error message string Change-Id: Ifedb85c1933a30b2aa491b495119919f45782e2c