From 5bf9b18328e61af808f5cbd6aa22513102096675 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 16 Jun 1998 06:52:24 +0000 Subject: CLITAR changes to overcome some reported problems and add Jay's changes (This used to be commit e1468dac0333eacea0a6f85f968e0a6d85af7f4c) --- source3/lib/util.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source3/lib/util.c b/source3/lib/util.c index 750ca0f3ab..698edac512 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -5016,6 +5016,25 @@ int unistrcpy(char *dst, char *src) return num_wchars; } +/******************************************************************* +Create a string of size size+1 (for the null) +*******************************************************************/ +char *string_create_s(int size) +{ + char *tmp; + + tmp = (char *)malloc(size+1); + + if (tmp == NULL) { + + DEBUG(0, ("Out of memory in string_create_s\n")); + + } + + return(tmp); + +} + /******************************************************************* safe string copy into a known length string. maxlength does not include the terminating zero. -- cgit