This doesn't really increase safety because logically i could never be
negative, but at least it suppresses the compiler warnings.
// Extract text from between HTML tags
int j = 1;
// Extract text from between HTML tags
int j = 1;
- for (int i = 345; i < strlen(chunk.memory); i++) {
+ for (int i = 345; (size_t)i < strlen(chunk.memory); i++) {
char c = chunk.memory[i];
if (c == '<') intag = true;
if (!intag) {
char c = chunk.memory[i];
if (c == '<') intag = true;
if (!intag) {
char *nl = (char *) calloc(1, sizeof(char));
if (!nl) memfail();
char *nl = (char *) calloc(1, sizeof(char));
if (!nl) memfail();
- for (int i = 0; i < strlen(outp) - 1; i++) {
+ for (int i = 0; (size_t)i < strlen(outp) - 1; i++) {
if (outp[i] == '\n' && outp[i+1] == '\n') i+=4;
nl = (char *) realloc(nl, i);
if (!nl) memfail();
if (outp[i] == '\n' && outp[i+1] == '\n') i+=4;
nl = (char *) realloc(nl, i);
if (!nl) memfail();