diff options
author | Richard Sharpe <sharpe@samba.org> | 1998-06-16 06:52:24 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 1998-06-16 06:52:24 +0000 |
commit | e1468dac0333eacea0a6f85f968e0a6d85af7f4c (patch) | |
tree | cce5f3a7f46691d6961b453dd26108948a0fd839 | |
parent | 31e768369fdc61e07c59630c86c62239f3d3f3f7 (diff) | |
download | samba-e1468dac0333eacea0a6f85f968e0a6d85af7f4c.tar.gz samba-e1468dac0333eacea0a6f85f968e0a6d85af7f4c.tar.xz samba-e1468dac0333eacea0a6f85f968e0a6d85af7f4c.zip |
CLITAR changes to overcome some reported problems and add Jay's changes
-rw-r--r-- | source/lib/util.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 750ca0f3ab4..698edac5126 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -5017,6 +5017,25 @@ int unistrcpy(char *dst, char *src) } /******************************************************************* +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. ********************************************************************/ |