summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-28 13:26:53 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-29 16:42:25 +0000
commit98ed3393cdfdf35ad0bb79f454474f2b27bf3d56 (patch)
tree39460b3611df8817c7a06fb0ba3e82ced2f5ea4d /contrib
parent3cb68518fc0de73f785ac386c6c4aec604320a2a (diff)
osmo_escape_str_buf: Always copy, don't return input string pointer
osmo_escape_str_buf() used to have the somewhat odd semantics that if no escaping was needed, it would return the original pointer without making any copy to the output buffer. While this seems like an elegant optimization, it is a very strange behavior and it works differently than all of our other *_buf() functions. Let's unify the API and turn osmo_escape_str_buf() into a strlcpy() if no escaping is needed. Change-Id: I3a02bdb27008a73101c2db41ac04248960ed4064
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions