gs: fix bug 694539. Reading off the end of the cbuf when dash pattern len is max

This commit is contained in:
cinap_lenrek 2015-03-08 05:27:24 +01:00
parent fcc336b902
commit b69556052e

View file

@ -142,7 +142,7 @@ extern const char *const *const cmd_sub_op_names[16];
#define cmd_max_intsize(siz)\
(((siz) * 8 + 6) / 7)
#define cmd_largest_size\
(2 + (1 + cmd_max_dash) * sizeof(float))
(2 + (2 + cmd_max_dash) * sizeof(float))
/* ---------------- Command parameters ---------------- */