repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 8c383c7dd6e9ec86384f01d55860d7ef01461477: path_to: revision_to:
commit 8c383c7dd6e9ec86384f01d55860d7ef01461477 Author: Marc LehmannDate: Thu Feb 20 18:59:13 2014 +0000 *** empty log message *** diff --git a/src/command.C b/src/command.C
--- a/src/command.C
+++ b/src/command.C
@@ -3229,7 +3229,7 @@ rxvt_term::get_to_st (unicode_t &ends_how)
unicode_t ch;
bool seen_esc = false;
unsigned int n = 0;
- wchar_t string[STRING_MAX];
+ wchar_t string[CBUFSIZ];
while ((ch = cmd_getc ()) != NOCHAR)
{
@@ -3254,7 +3254,7 @@ rxvt_term::get_to_st (unicode_t &ends_how)
seen_esc = false;
- if (n >= STRING_MAX - 1)
+ if (n >= sizeof (string) - 1)
// stop at some sane length
return NULL;
diff --git a/src/command.h b/src/command.h
--- a/src/command.h
+++ b/src/command.h
@@ -5,9 +5,6 @@
#ifndef COMMAND_H_
#define COMMAND_H_
-// STRING_MAX __MUST__ not be larger than what CBUFSIZ can hold.
-#define STRING_MAX 2048 /* max string size for process_{dcs,osc}_seq () */
-
#define ESC_ARGS 32 /* max # of args for esc sequences */
#ifndef MULTICLICK_TIME
diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -664,7 +664,7 @@ enum {
// do not change these constants lightly, there are many interdependencies
#define IMBUFSIZ 128 // input modifier buffer sizes
#define KBUFSZ 512 // size of keyboard mapping buffer
-#define CBUFSIZ 2048 // size of command buffer
+#define CBUFSIZ 2048 // size of command buffer (longest command sequence possible)
#define CBUFCNT 8 // never call pty_fill/cmd_parse more than this often in a row
#define UBUFSIZ 2048 // character buffer
-----END OF PAGE-----