summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-13 21:41:01 +0000
committerJeremy Allison <jra@samba.org>1998-11-13 21:41:01 +0000
commit8fc1504ff8204dd1ca735f31c769f6dadf0f88cb (patch)
treec8f269c0f415afebc4069aee335629a08d2e0916 /source3/rpcclient
parente623b717502988f630a73a5e809c456b1839ebdb (diff)
downloadsamba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.gz
samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.bz2
samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.zip
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)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/display.c18
1 files changed, 9 insertions, 9 deletions
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;
}