Skip to content

Commit f6968f9

Browse files
committed
Add explicit note about utf8_string's size. Closes #66.
1 parent 69e52dc commit f6968f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/libmaxminddb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ The `pointer` member of the union should never be populated in any data
246246
returned by the API. Pointers should always be resolved internally.
247247

248248
The `data_size` member is only relevant for `utf8_string` and `bytes` data.
249+
`utf8_string` is not null terminated and `data_size` _must_ be used to
250+
determine its length.
249251

250252
The `type` member can be compared to one of the `MMDB_DTYPE_*` macros.
251253

0 commit comments

Comments
 (0)