summaryrefslogtreecommitdiff
path: root/source3/locking/posix.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-15 18:27:26 -0800
committerJeremy Allison <jra@samba.org>2007-11-15 18:27:26 -0800
commitacb829ecc3b9af3f141425ecac032a7c722a1815 (patch)
treeb5f4f9d8d89096859509b419894ac68c6b62f029 /source3/locking/posix.c
parentc261545449f71d9b347a37518dab0d5ae4116f8b (diff)
downloadsamba-acb829ecc3b9af3f141425ecac032a7c722a1815.tar.gz
samba-acb829ecc3b9af3f141425ecac032a7c722a1815.tar.bz2
samba-acb829ecc3b9af3f141425ecac032a7c722a1815.zip
Add MAX_DNS_NAME_LENGTH, remove more pstrings.
Jeremy. (This used to be commit a1725f4ff7ed375808c78ac661b539557748d0a5)
Diffstat (limited to 'source3/locking/posix.c')
-rw-r--r--source3/locking/posix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index 135e204f01..37cfa04373 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -933,9 +933,12 @@ new: start=%.0f,size=%.0f\n", (double)l_curr->start, (double)l_curr->size,
* This logic case should never happen. Ensure this is the
* case by forcing an abort.... Remove in production.
*/
- pstring msg;
+ char *msg = NULL;
- slprintf(msg, sizeof(msg)-1, "logic flaw in cases: l_curr: start = %.0f, size = %.0f : \
+ /* Don't check if alloc succeeds here - we're
+ * forcing a core dump anyway. */
+
+ asprintf(&msg, "logic flaw in cases: l_curr: start = %.0f, size = %.0f : \
lock: start = %.0f, size = %.0f", (double)l_curr->start, (double)l_curr->size, (double)lock->start, (double)lock->size );
smb_panic(msg);