diff options
Diffstat (limited to 'SAMBA_3_2_MERGE/source/lib/util_str.c')
-rw-r--r-- | SAMBA_3_2_MERGE/source/lib/util_str.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SAMBA_3_2_MERGE/source/lib/util_str.c b/SAMBA_3_2_MERGE/source/lib/util_str.c index 60eddf903f5..2e10b780c02 100644 --- a/SAMBA_3_2_MERGE/source/lib/util_str.c +++ b/SAMBA_3_2_MERGE/source/lib/util_str.c @@ -603,10 +603,12 @@ char *safe_strcpy(char *dest,const char *src, size_t maxlength) * or fstring) then this should cause an error under a memory * checker. */ dest[maxlength] = '\0'; +#if 0 /* JERRY -- temporary */ if (PTR_DIFF(&len, dest) > 0) { /* check if destination is on the stack, ok if so */ log_suspicious_usage("safe_strcpy", src); } #endif +#endif if (!src) { *dest = 0; @@ -644,10 +646,12 @@ char *safe_strcat(char *dest, const char *src, size_t maxlength) return dest; #ifdef DEVELOPER +#if 0 /* JERRY -- temporary */ if (PTR_DIFF(&src_len, dest) > 0) { /* check if destination is on the stack, ok if so */ log_suspicious_usage("safe_strcat", src); } #endif +#endif src_len = strlen(src); dest_len = strlen(dest); |