From fd46817f0b20c633c80dee70a29cf7478e2dfd68 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 16 Feb 2001 19:21:18 +0000 Subject: 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) --- source3/client/tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/client/tree.c') 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)); } } -- cgit