summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-18 05:04:44 +0000
committerMartin Pool <mbp@samba.org>2003-03-18 05:04:44 +0000
commitb9a8ad5f3bcf8f0d75c39b8f993010f3d1fded7e (patch)
tree99c8d0cfd6d288c4d4b5cda13f12e36d21a7a363 /source3/include
parenteb8374894061e9dc3bc83e397a92248d23b99f22 (diff)
downloadsamba-b9a8ad5f3bcf8f0d75c39b8f993010f3d1fded7e.tar.gz
samba-b9a8ad5f3bcf8f0d75c39b8f993010f3d1fded7e.tar.bz2
samba-b9a8ad5f3bcf8f0d75c39b8f993010f3d1fded7e.zip
Speling fixes and a little extra documentation.
(This used to be commit 8da383bb3e63d25ceb0204c775580f2f1b3336ec)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/safe_string.h12
1 files 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)