diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-05-12 14:22:56 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-05-12 14:26:29 +0300 |
commit | cfa372ff8aed8257465adb5445f43656ace2d615 (patch) | |
tree | 1e32cc3f255feba71567114a406af5e703f39210 /blobmsg.h | |
parent | 45210ce14136d9410d7139fba816c4465b4c7af5 (diff) |
blobmsg: implicitly reserve space for 0-terminator in string buf alloc
It may not be clear to all users of this API if the provided maxlen argument
refers to the maximum string length or the maximum buffer size.
In order to improve safety and convenience of this API, make it refer to
the maximum string length.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'blobmsg.h')
0 files changed, 0 insertions, 0 deletions