From b9a8ad5f3bcf8f0d75c39b8f993010f3d1fded7e Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Tue, 18 Mar 2003 05:04:44 +0000 Subject: Speling fixes and a little extra documentation. (This used to be commit 8da383bb3e63d25ceb0204c775580f2f1b3336ec) --- source3/include/safe_string.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h index 65ec05a5c6..d01a6c6321 100644 --- a/source3/include/safe_string.h +++ b/source3/include/safe_string.h @@ -129,12 +129,12 @@ size_t __unsafe_string_function_usage_here_char__(void); safe_strcpy(dest, src, sizeof(pstring)-PTR_DIFF(dest,pstring_base)-1) -/* inside the _fn varients of these is a call to 'clobber_region' - which might - destory the stack on a buggy function. Help the debugging process by putting - the function and line it was last called from into a static buffer - - But only for developers */ - +/* Inside the _fn variants of these is a call to clobber_region(), - + * which might destroy the stack on a buggy function. We help the + * debugging process by putting the function and line who last caused + * a clobbering into a static buffer. If the program crashes at + * address 0xf1f1f1f1 then this function is probably, but not + * necessarily, to blame. */ #ifdef DEVELOPER #define overmalloc_safe_strcpy(dest,src,maxlength) safe_strcpy_fn(__FUNCTION__,__LINE__,dest,src,maxlength) #define safe_strcpy(dest,src,maxlength) safe_strcpy_fn2(__FUNCTION__,__LINE__,dest,src,maxlength) -- cgit