s = ctx->s;
i = ctx->i; j = ctx->j;
- for (k = 0; k < len; k++) {
+ for (k = 0; (int)k < len; k++) {
i = (i + 1) & 0xff;
j = (j + s[i]) & 0xff;
tmp = s[i]; s[i] = s[j]; s[j] = tmp;
unsigned char *junk = snewn(1536, unsigned char);
memset(junk, 0, 1536);
arcfour_block(ctx, junk, 1536);
- memset(junk, 0, 1536);
+ smemclr(junk, 1536);
sfree(junk);
}