diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2019-04-08 12:07:36 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2019-04-08 12:16:03 +0200 |
commit | e8461e486ebac6361b0869962aa86c5b8d46e59e (patch) | |
tree | ee0d2e034b148fe5c2bb8ed65985d33e509abe73 /tests/codec | |
parent | 4a62eda225ab7f3c9556990c81a6fc5e19b5eec8 (diff) |
gsm_utils: fix use buf_len instead of sizeof in osmo_dump_gsmtime_buf
The function osmo_dump_gsmtime_buf gets a pointer *buf and a parameter
buf_len. The pointer *buf is a string buffer and the function places an
\0 at the end of the buffer before it exists. However it uses
sizeof(buf) as part of the index calculation, which is incorrect. Lets
correct this by using buf_len instead.
Change-Id: Id24263aa7c9a53544f1639b6ceb09ce5615d5114
Diffstat (limited to 'tests/codec')
0 files changed, 0 insertions, 0 deletions