summaryrefslogtreecommitdiff
path: root/source/client/tree.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-15 17:52:55 +0000
committerGerald Carter <jerry@samba.org>2003-08-15 17:52:55 +0000
commit7139794cd0e68298e638929f35e7684a60fe5974 (patch)
tree2b40a989618bb9ece453fc995c645dfb1556af22 /source/client/tree.c
parent34ec734381246665fb20225dc2e03b06fd7fcc90 (diff)
downloadsamba-7139794cd0e68298e638929f35e7684a60fe5974.tar.gz
syncing up to 3.0.0rc1
Diffstat (limited to 'source/client/tree.c')
-rw-r--r--source/client/tree.c6
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);