diff options
author | Felix Herrmann <fherrmann@de.adit-jv.com> | 2020-01-14 17:18:46 +0100 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:04:07 +0900 |
commit | 0ae98e7b46f13d415e051a7acdfd7d703c5c25f9 (patch) | |
tree | 80cdb59ff4da84880dcc09224fcdc76009313751 /src/offlinelogstorage/dlt_offline_logstorage.c | |
parent | 676e8fc1ba927dc84df82b508d796e31d9fd120c (diff) | |
download | DLT-daemon-0ae98e7b46f13d415e051a7acdfd7d703c5c25f9.tar.gz |
snprintf ret > 0 is not always an error
snprintf returns the size the resulting string would take.
In order to detect truncation, this size needs to be
checked against the buffer size.
Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com>
Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'src/offlinelogstorage/dlt_offline_logstorage.c')
0 files changed, 0 insertions, 0 deletions