Skip to content

Commit

Permalink
lib: at_parser: Fix at_parser_string_get() "len" parameter description
Browse files Browse the repository at this point in the history
Fixed at_parser_string_get() "len" parameter description. The size of
the given buffer must be at least string length + 1.

Signed-off-by: Tommi Kangas <[email protected]>
  • Loading branch information
tokangas authored and nordicjm committed Sep 4, 2024
1 parent 0e24656 commit 2d1690d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/modem/at_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ int at_parser_uint64_get(struct at_parser *parser, size_t index, uint64_t *value
* The data type must be a string (quoted or non-quoted), an AT command prefix, or an array,
* otherwise an error is returned.
* The string value is copied to the buffer and null-terminated.
* @p len must be larger than the string length plus one, or an error is returned.
* @p len must be at least string length plus one, or an error is returned.
*
* @param[in] parser AT parser.
* @param[in] index Index in the current AT command line configured in @p parser.
Expand Down

0 comments on commit 2d1690d

Please sign in to comment.