old-st

[ARCHIVED] my build of st
git clone git://git.ckyln.com/~cem/old-st.git
Log | Files | Refs | README | LICENSE

commit e0e9f77b37371382f0aa4fbf81b71aac02d0827a
parent dd0b57fc0a7d52d8055d950d1a1e923778068f06
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 16 Oct 2019 12:38:43 +0300

CSIEscape, STREscape: use size_t for buffer length

Diffstat:
Mst.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/st.c b/st.c @@ -142,7 +142,7 @@ typedef struct { /* ESC '[' [[ [<priv>] <arg> [;]] <mode> [<mode>]] */ typedef struct { char buf[ESC_BUF_SIZ]; /* raw string */ - int len; /* raw string length */ + size_t len; /* raw string length */ char priv; int arg[ESC_ARG_SIZ]; int narg; /* nb of args */ @@ -154,7 +154,7 @@ typedef struct { typedef struct { char type; /* ESC type ... */ char buf[STR_BUF_SIZ]; /* raw string */ - int len; /* raw string length */ + size_t len; /* raw string length */ char *args[STR_ARG_SIZ]; int narg; /* nb of args */ } STREscape; @@ -1861,7 +1861,7 @@ csihandle(void) void csidump(void) { - int i; + size_t i; uint c; fprintf(stderr, "ESC["); @@ -2032,7 +2032,7 @@ externalpipe(const Arg *arg) void strdump(void) { - int i; + size_t i; uint c; fprintf(stderr, "ESC%c", strescseq.type);