]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.h
Fix uses of strlcpy on unterminated source strings
[xonotic/darkplaces.git] / cmd.h
diff --git a/cmd.h b/cmd.h
index 30b3abd05d732ce6d05b75d4d85f3c94a17e66eb..614aa0a094b725012e42037ba7ae3134f51144e3 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -156,8 +156,8 @@ typedef struct cmd_input_s
        llist_t list;
        cmd_state_t *source;
        vec_t delay;
-       size_t size;
-       size_t length;
+       size_t size;   ///< excludes \0 terminator
+       size_t length; ///< excludes \0 terminator
        char *text;
        qbool pending;
 } cmd_input_t;