diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-05-26 03:12:29 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-05-26 22:30:49 +0200 |
commit | 6d67032d5092bdcc8fcd1082a6fb136b4372691e (patch) | |
tree | c94d379d4e3961bf90f69c7b127588b9c0400bac /tests/testsuite.at | |
parent | dacac990f94cd820724cdfae124a4b5274668263 (diff) |
fix osmo_mi_name_c() to always return talloced strings, via osmo_mi_name_buf()
Fix osmo_mi_name_buf() to snprintf() into the buf in *all* cases.
osmo_mi_name_c() is implemented via osmo_mi_name_buf(), which returns
compile-time string constants in special cases. That means that
osmo_mi_name_c() does return non-allocated strings in these special cases.
The caller of functions like osmo_mi_name_c() must always be able to rely on
getting a talloced string, or run a danger of deallocating const pointers.
Change-Id: I623959f01b72642bcdd18508097c5c405c59f6f1
Diffstat (limited to 'tests/testsuite.at')
0 files changed, 0 insertions, 0 deletions