#include <stdio.h>
/* Macro for valid RC name characters*/
-#define isinvalidrcname(x) (isgraph(x)||ispunct(x))
+#define isvalidrcname(x) ((!ispunct(x))&&isgraph(x))
krb5_error_code KRB5_CALLCONV
krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache *rcptr)
{
for (i = 0; i < piece->length; i++) {
if (piece->data[i] == '\\')
len++;
- else if (!isinvalidrcname((int) piece->data[i]))
+ else if (!isvalidrcname((int) piece->data[i]))
len += 3;
}