Speling fixes and a little extra documentation.
authorMartin Pool <mbp@samba.org>
Tue, 18 Mar 2003 05:04:44 +0000 (05:04 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 18 Mar 2003 05:04:44 +0000 (05:04 +0000)
(This used to be commit 8da383bb3e63d25ceb0204c775580f2f1b3336ec)

source3/include/safe_string.h

index 65ec05a5c618f43c99eb7b6f474736767d011d6c..d01a6c63219622f958fe564930a3c8a5bf1ab1b7 100644 (file)
@@ -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)