mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +03:00
CLITAR changes to overcome some reported problems and add Jay's changes
This commit is contained in:
@@ -5016,6 +5016,25 @@ int unistrcpy(char *dst, char *src)
|
|||||||
return num_wchars;
|
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
|
safe string copy into a known length string. maxlength does not
|
||||||
include the terminating zero.
|
include the terminating zero.
|
||||||
|
|||||||
Reference in New Issue
Block a user