diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-23 12:33:59 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-23 12:33:59 +0000 |
commit | 9f835b85dd38cbe655eb19021ff763f31886ac00 (patch) | |
tree | 6518cb2e4a60a5418ab1ac362041595687d4d82e /source/client/tree.c | |
parent | 36bc2b99b4fec2c14f8471d89381b2d6c2f9d339 (diff) | |
download | samba-9f835b85dd38cbe655eb19021ff763f31886ac00.tar.gz samba-9f835b85dd38cbe655eb19021ff763f31886ac00.tar.xz samba-9f835b85dd38cbe655eb19021ff763f31886ac00.zip |
convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len. At least this helps to be consistent.
Diffstat (limited to 'source/client/tree.c')
-rw-r--r-- | source/client/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/tree.c b/source/client/tree.c index 3b90d15f652..97ad7742e31 100644 --- a/source/client/tree.c +++ b/source/client/tree.c @@ -69,7 +69,7 @@ static void tree_error_message(gchar *message) { * workgroup type and return a path from there */ -static char path_string[1024]; +static pstring path_string; char *get_path(GtkWidget *item) { @@ -112,7 +112,7 @@ char *get_path(GtkWidget *item) * Now, build the path */ - snprintf(path_string, sizeof(path_string), "smb:/"); + pstrcpy( path_string, "smb:/" ); for (j = i - 1; j >= 0; j--) { @@ -151,7 +151,7 @@ static void cb_select_child (GtkWidget *root_tree, GtkWidget *child, char dirbuf[512]; struct smbc_dirent *dirp; struct stat st1; - char path[1024], path1[1024]; + pstring path, path1; g_print ("select_child called for root tree %p, subtree %p, child %p\n", root_tree, subtree, child); |