diff options
author | Jeremy Allison <jra@samba.org> | 2001-02-16 19:21:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-02-16 19:21:18 +0000 |
commit | fd46817f0b20c633c80dee70a29cf7478e2dfd68 (patch) | |
tree | c7bc095fe35ac78b061d36ae04851ff04b006275 /source3/client | |
parent | 62dc55a43295e9e3abd9da13148b322b3aa89917 (diff) | |
download | samba-fd46817f0b20c633c80dee70a29cf7478e2dfd68.tar.gz samba-fd46817f0b20c633c80dee70a29cf7478e2dfd68.tar.bz2 samba-fd46817f0b20c633c80dee70a29cf7478e2dfd68.zip |
Excise snprintf -> slprintf.
srv_samr.c: duplicate gid fix.
srv_spoolss_nt.c: Merge of JF's work.
uid.c: Fix for returning names when a PDC.
Jeremy.
(This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 2 | ||||
-rw-r--r-- | source3/client/tree.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 4554a96320..c9733ce213 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1837,7 +1837,7 @@ static void process_stdin(void) temp = (char *)NULL; } - snprintf( prompt_str, PROMPTSIZE - 1, "smb: %s> ", cur_dir ); + slprintf( prompt_str, PROMPTSIZE - 1, "smb: %s> ", cur_dir ); temp = readline( prompt_str ); /* We read the line here */ diff --git a/source3/client/tree.c b/source3/client/tree.c index 941a096677..94bc6c0bfc 100644 --- a/source3/client/tree.c +++ b/source3/client/tree.c @@ -88,7 +88,7 @@ char *get_path(GtkWidget *item) * Now, build the path */ - snprintf(path_string, sizeof(path_string), "smb:/"); + slprintf(path_string, sizeof(path_string)-1, "smb:/"); for (j = i - 1; j >= 0; j--) { @@ -367,7 +367,7 @@ static void cb_select_child (GtkWidget *root_tree, GtkWidget *child, else { /* Now format each of the relevant things ... */ - snprintf(col2, sizeof(col2), "%s%s%s%s%s%s(%0X)", + slprintf(col2, sizeof(col2)-1, "%s%s%s%s%s%s(%0X)", (st1.st_mode&0x20?"A":""), (st1.st_mode&0x10?"D":""), (st1.st_mode&0x08?"V":""), @@ -375,8 +375,8 @@ static void cb_select_child (GtkWidget *root_tree, GtkWidget *child, (st1.st_mode&0x02?"H":""), (st1.st_mode&0x01?"R":""), st1.st_mode); - snprintf(col3, sizeof(col3), "%u", st1.st_size); - snprintf(col4, sizeof(col4), "%s", ctime(&st1.st_ctime)); + slprintf(col3, sizeof(col3)-1, "%u", st1.st_size); + slprintf(col4, sizeof(col4)-1, "%s", ctime(&st1.st_ctime)); } } |