From: Theodore Tso Date: Thu, 3 Jun 1993 12:08:25 +0000 (+0000) Subject: Changed organization; server and client in separate directories X-Git-Tag: krb5-1.0-beta3~247 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=556e73db668ad6be35a3d099021610518d2cc1f9;p=krb5.git Changed organization; server and client in separate directories Fixed bad printf format. Changed convert_sname_principal interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2591 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/sample/sclient/sclient.c b/src/appl/sample/sclient/sclient.c index b3a243799..152c6d055 100644 --- a/src/appl/sample/sclient/sclient.c +++ b/src/appl/sample/sclient/sclient.c @@ -46,7 +46,7 @@ static char rcsid_sclient_c [] = #include #include -#include "sample.h" +#include "../sample.h" void main(argc, argv) @@ -107,9 +107,7 @@ char *argv[]; } if (retval = krb5_sname_to_principal(argv[1], SAMPLE_SERVICE, - TRUE, /* TRUE means canonicalize - hostname */ - &server)) { + KRB5_NT_SRV_HST, &server)) { com_err(argv[0], retval, "while creating server name for %s", argv[1]); exit(1); @@ -214,8 +212,9 @@ char *argv[]; com_err(argv[0], errno, "while reading data from server"); exit(1); } - printf("reply len %d, contents:\n%*s\n", - recv_data.length,recv_data.length,recv_data.data); + recv_data.data[recv_data.length] = '\0'; + printf("reply len %d, contents:\n%s\n", + recv_data.length,recv_data.data); } else { com_err(argv[0], 0, "no error or reply from sendauth!"); exit(1);