diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-10-16 12:38:43 +0300 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-11-10 22:45:54 +0100 |
commit | 289c52b7aa9b0e826bbea6f956755b3199b3ccac (patch) | |
tree | 8147b8cbe2be73f2658af167fc5bab646b296bd7 /st.c | |
parent | 7ceb3d1f72eabfa678e5cfae176c57630ad98c43 (diff) | |
download | st-289c52b7aa9b0e826bbea6f956755b3199b3ccac.tar.gz st-289c52b7aa9b0e826bbea6f956755b3199b3ccac.zip |
CSIEscape, STREscape: use size_t for buffer length
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -135,7 +135,7 @@ typedef struct { | |||
135 | /* ESC '[' [[ [<priv>] <arg> [;]] <mode> [<mode>]] */ | 135 | /* ESC '[' [[ [<priv>] <arg> [;]] <mode> [<mode>]] */ |
136 | typedef struct { | 136 | typedef struct { |
137 | char buf[ESC_BUF_SIZ]; /* raw string */ | 137 | char buf[ESC_BUF_SIZ]; /* raw string */ |
138 | int len; /* raw string length */ | 138 | size_t len; /* raw string length */ |
139 | char priv; | 139 | char priv; |
140 | int arg[ESC_ARG_SIZ]; | 140 | int arg[ESC_ARG_SIZ]; |
141 | int narg; /* nb of args */ | 141 | int narg; /* nb of args */ |
@@ -147,7 +147,7 @@ typedef struct { | |||
147 | typedef struct { | 147 | typedef struct { |
148 | char type; /* ESC type ... */ | 148 | char type; /* ESC type ... */ |
149 | char buf[STR_BUF_SIZ]; /* raw string */ | 149 | char buf[STR_BUF_SIZ]; /* raw string */ |
150 | int len; /* raw string length */ | 150 | size_t len; /* raw string length */ |
151 | char *args[STR_ARG_SIZ]; | 151 | char *args[STR_ARG_SIZ]; |
152 | int narg; /* nb of args */ | 152 | int narg; /* nb of args */ |
153 | } STREscape; | 153 | } STREscape; |
@@ -1803,7 +1803,7 @@ csihandle(void) | |||
1803 | void | 1803 | void |
1804 | csidump(void) | 1804 | csidump(void) |
1805 | { | 1805 | { |
1806 | int i; | 1806 | size_t i; |
1807 | uint c; | 1807 | uint c; |
1808 | 1808 | ||
1809 | fprintf(stderr, "ESC["); | 1809 | fprintf(stderr, "ESC["); |
@@ -1921,7 +1921,7 @@ strparse(void) | |||
1921 | void | 1921 | void |
1922 | strdump(void) | 1922 | strdump(void) |
1923 | { | 1923 | { |
1924 | int i; | 1924 | size_t i; |
1925 | uint c; | 1925 | uint c; |
1926 | 1926 | ||
1927 | fprintf(stderr, "ESC%c", strescseq.type); | 1927 | fprintf(stderr, "ESC%c", strescseq.type); |