Commit 71e05f1e authored by Neal Norwitz's avatar Neal Norwitz

Don't truncate if size_t is bigger than uint

parent 418b97ea
...@@ -1232,7 +1232,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end) ...@@ -1232,7 +1232,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
do { do {
*tp++ = c = tok_nextc(tok); *tp++ = c = tok_nextc(tok);
} while (c != EOF && c != '\n' && } while (c != EOF && c != '\n' &&
(unsigned int)(tp - cbuf + 1) < sizeof(cbuf)); (size_t)(tp - cbuf + 1) < sizeof(cbuf));
*tp = '\0'; *tp = '\0';
for (cp = tabforms; for (cp = tabforms;
cp < tabforms + sizeof(tabforms)/sizeof(tabforms[0]); cp < tabforms + sizeof(tabforms)/sizeof(tabforms[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment