commit 289c52b7aa9b0e826bbea6f956755b3199b3ccac from: Hiltjo Posthuma date: Sun Nov 10 21:45:54 2019 UTC CSIEscape, STREscape: use size_t for buffer length commit - 7ceb3d1f72eabfa678e5cfae176c57630ad98c43 commit + 289c52b7aa9b0e826bbea6f956755b3199b3ccac blob - 50226d1677b230d290d9e802742e85f27dc1d4b4 blob + 0c1acd44a9e81319342a4523da2b4df4a0e49689 --- st.c +++ st.c @@ -135,7 +135,7 @@ typedef struct { /* ESC '[' [[ [] [;]] []] */ 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 */ @@ -147,7 +147,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; @@ -1803,7 +1803,7 @@ csihandle(void) void csidump(void) { - int i; + size_t i; uint c; fprintf(stderr, "ESC["); @@ -1921,7 +1921,7 @@ strparse(void) void strdump(void) { - int i; + size_t i; uint c; fprintf(stderr, "ESC%c", strescseq.type);