summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 208f13aaf0..a68b8c2e6c 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -4428,3 +4428,11 @@ void dump_data(int level,unsigned char *buf,int len)
DEBUG(level,("\n"));
}
}
+
+char *tab_depth(int depth)
+{
+ static pstring spaces;
+ memset(spaces, ' ', depth * 4);
+ spaces[depth * 4] = 0;
+ return spaces;
+}