mirror of
https://github.com/json-c/json-c.git
synced 2026-04-11 08:19:08 +08:00
Aligned comment in _json_object_new_string
The comment only aligns correctly if tab size is 4. Replaced spaces with tabs to stay in sync with style of other lines.
This commit is contained in:
@@ -1254,17 +1254,17 @@ static struct json_object *_json_object_new_string(const char *s, const size_t l
|
|||||||
struct json_object_string *jso;
|
struct json_object_string *jso;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structures Actual memory layout
|
* Structures Actual memory layout
|
||||||
* ------------------- --------------------
|
* ------------------- --------------------
|
||||||
* [json_object_string [json_object_string
|
* [json_object_string [json_object_string
|
||||||
* [json_object] [json_object]
|
* [json_object] [json_object]
|
||||||
* ...other fields... ...other fields...
|
* ...other fields... ...other fields...
|
||||||
* c_string] len
|
* c_string] len
|
||||||
* bytes
|
* bytes
|
||||||
* of
|
* of
|
||||||
* string
|
* string
|
||||||
* data
|
* data
|
||||||
* \0]
|
* \0]
|
||||||
*/
|
*/
|
||||||
if (len > (SSIZE_T_MAX - (sizeof(*jso) - sizeof(jso->c_string)) - 1))
|
if (len > (SSIZE_T_MAX - (sizeof(*jso) - sizeof(jso->c_string)) - 1))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user