summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-02-06 19:18:20 +0000
committerGreg Hudson <ghudson@mit.edu>2009-02-06 19:18:20 +0000
commitf3c259c397808914fd2b4c2e4662766d45b60b64 (patch)
tree57526095dabefac57930dfc16c6f94bec46e291a
parent59f4572e458f114f5f9e8da78ff3f79d117197d1 (diff)
downloadkrb5-f3c259c397808914fd2b4c2e4662766d45b60b64.tar.gz
krb5-f3c259c397808914fd2b4c2e4662766d45b60b64.tar.xz
krb5-f3c259c397808914fd2b4c2e4662766d45b60b64.zip
Pass the correct width argument to fprintf for URE_CHAR in
ure_write_dfa. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21910 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/lib/krb5/unicode/ure/ure.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/krb5/unicode/ure/ure.c b/src/lib/krb5/unicode/ure/ure.c
index c8a202964..5630399f5 100644
--- a/src/lib/krb5/unicode/ure/ure.c
+++ b/src/lib/krb5/unicode/ure/ure.c
@@ -1918,7 +1918,8 @@ ure_write_dfa(ure_dfa_t dfa, FILE *out)
l = (ucs2_t) (((sym->sym.chr - 0x10000) & 1023) + 0xdc00);
fprintf(out, "\\x%04hX\\x%04hX ", h, l);
} else
- fprintf(out, "\\x%04lX ", sym->sym.chr & 0xffff);
+ fprintf(out, "\\x%04lX ",
+ (unsigned long)(sym->sym.chr & 0xffff));
break;
case _URE_ANY_CHAR:
fprintf(out, "<any> ");