if (bufsiz == 0)
return 1;
- if ((rc & 0xffff) != rc)
- abort();
rc = rc % bufsiz;
if (rc == 0)
return 1;
int i, j;
if (strrchr(file, '/'))
file = 1 + strrchr(file, '/');
+#if 0
_log("%s:%d: %s: %d at %p\n", file, line, label, len, vptr);
for (i = 0; i < (len + 7) / 8; i++) {
unsigned char *base = (i * 8) + (unsigned char *)vptr;
sprintf(b+strlen(b), " %02x", base[j]);
_log("\t\t%04x/@%p:%s\n", 8 * i, base, b);
}
+#else
+ _log("%s:%d: %s: %d at %p [omitted]\n", file, line, label, len, vptr);
+#endif
}
krb5_error_code
if (ec_max > 0xffff)
ec_max = 0xffff;
/* For testing only. For performance, always set ec = 0. */
-#define rand() ((rand)() & 0xf)
ec = ec_max & rand();
_log("%s:%d: ec=%d\n", SFILE, __LINE__, ec);
plain.length = message->length + 16 + ec;