From: Ezra Peisach Date: Tue, 17 Oct 2000 14:07:53 +0000 (+0000) Subject: * sim_server.c: Cast to int strings width arguments in printf X-Git-Tag: krb5-1.3-alpha1~1833 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f81c371d3b14924e0acf9e5342ba3bd7363b3c97;p=krb5.git * sim_server.c: Cast to int strings width arguments in printf git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12770 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/simple/server/ChangeLog b/src/appl/simple/server/ChangeLog index 0bcd7ce30..d8204db8b 100644 --- a/src/appl/simple/server/ChangeLog +++ b/src/appl/simple/server/ChangeLog @@ -1,3 +1,7 @@ +2000-10-16 Ezra Peisach + + * sim_server.c: Cast to int strings width arguments in printf. + Tue Sep 26 18:16:33 2000 Ezra Peisach * sim_server.c: Warnigs cleanup of signed vs. unsigned arguments diff --git a/src/appl/simple/server/sim_server.c b/src/appl/simple/server/sim_server.c index b04338f77..137cc49f0 100644 --- a/src/appl/simple/server/sim_server.c +++ b/src/appl/simple/server/sim_server.c @@ -246,7 +246,7 @@ char *argv[]; com_err(PROGNAME, retval, "while verifying SAFE message"); exit(1); } - printf("Safe message is: '%.*s'\n", message.length, message.data); + printf("Safe message is: '%.*s'\n", (int) message.length, message.data); krb5_free_data_contents(context, &message); @@ -269,7 +269,8 @@ char *argv[]; com_err(PROGNAME, retval, "while verifying PRIV message"); exit(1); } - printf("Decrypted message is: '%.*s'\n", message.length, message.data); + printf("Decrypted message is: '%.*s'\n", (int) message.length, + message.data); krb5_auth_con_free(context, auth_context); krb5_free_context(context);