]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.h
cmd: Re-re-re-re-implement the command parser. Allocate text only as needed.
[xonotic/darkplaces.git] / cmd.h
diff --git a/cmd.h b/cmd.h
index 0b8c3d7dfd51bff7bfee671cc33571a0dcdf704b..c04e6c361b204fdbb0775c52f5ecce730d1e12df 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -140,7 +140,8 @@ typedef struct cmd_input_s
        cmd_state_t *source;
        double delay;
        size_t size;
-       char text[MAX_INPUTLINE];
+       size_t length;
+       char *text;
        qbool pending;
 } cmd_input_t;