From 8fc1504ff8204dd1ca735f31c769f6dadf0f88cb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Nov 1998 21:41:01 +0000 Subject: Makefile.in configure configure.in include/config.h.in: Changes for DGUX and UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c) --- source3/rpcclient/display.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c index f3bde7e58d..a2248920cd 100644 --- a/source3/rpcclient/display.c +++ b/source3/rpcclient/display.c @@ -1065,7 +1065,7 @@ char *get_sec_mask_str(uint32 type) if (type != 0) { fstring tmp; - snprintf(tmp, sizeof(tmp), "[%08x]", type); + slprintf(tmp, sizeof(tmp)-1, "[%08x]", type); fstrcat(typestr, tmp); } @@ -1132,28 +1132,28 @@ void display_sec_ace(FILE *out_hnd, enum action_type action, SEC_ACE *ace) /**************************************************************************** display sec_acl structure ****************************************************************************/ -void display_sec_acl(FILE *out_hnd, enum action_type action, SEC_ACL *acl) +void display_sec_acl(FILE *out_hnd, enum action_type action, SEC_ACL *sec_acl) { switch (action) { case ACTION_HEADER: { fprintf(out_hnd, "\tACL\tNum ACEs:\t%d\trevision:\t%x\n", - acl->num_aces, acl->revision); + sec_acl->num_aces, sec_acl->revision); fprintf(out_hnd, "\t---\n"); break; } case ACTION_ENUMERATE: { - if (acl->size != 0 && acl->num_aces != 0) + if (sec_acl->size != 0 && sec_acl->num_aces != 0) { int i; - for (i = 0; i < acl->num_aces; i++) + for (i = 0; i < sec_acl->num_aces; i++) { - display_sec_ace(out_hnd, ACTION_HEADER , &acl->ace[i]); - display_sec_ace(out_hnd, ACTION_ENUMERATE, &acl->ace[i]); - display_sec_ace(out_hnd, ACTION_FOOTER , &acl->ace[i]); + display_sec_ace(out_hnd, ACTION_HEADER , &sec_acl->ace[i]); + display_sec_ace(out_hnd, ACTION_ENUMERATE, &sec_acl->ace[i]); + display_sec_ace(out_hnd, ACTION_FOOTER , &sec_acl->ace[i]); } } @@ -1256,7 +1256,7 @@ char *get_reg_val_type_str(uint32 type) break; } } - snprintf(typestr, sizeof(typestr), "[%d]", type); + slprintf(typestr, sizeof(typestr)-1, "[%d]", type); return typestr; } -- cgit