]> granicus.if.org Git - json-c/commitdiff
Aligned comment in _json_object_new_string
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 22 Aug 2020 11:07:45 +0000 (13:07 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 22 Aug 2020 11:07:45 +0000 (13:07 +0200)
The comment only aligns correctly if tab size is 4. Replaced
spaces with tabs to stay in sync with style of other lines.

json_object.c

index 6c572a88567592d3131b00aabc8601cbc154b35a..f8d14d5aa914a4fb78c57e9af59d5ab8bddd4e16 100644 (file)
@@ -1254,17 +1254,17 @@ static struct json_object *_json_object_new_string(const char *s, const size_t l
        struct json_object_string *jso;
 
        /*
-     * Structures           Actual memory layout
-     * -------------------  --------------------
+        * Structures           Actual memory layout
+        * -------------------  --------------------
         * [json_object_string  [json_object_string
         *  [json_object]        [json_object]
-     *  ...other fields...   ...other fields...
+        *  ...other fields...   ...other fields...
         *  c_string]            len
-     *                       bytes
+        *                       bytes
         *                       of
         *                       string
         *                       data
-     *                       \0]
+        *                       \0]
         */
        if (len > (SSIZE_T_MAX - (sizeof(*jso) - sizeof(jso->c_string)) - 1))
                return NULL;