From 0f20bcdbaaf39e0510038a29c29c41e368878116 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 19 Dec 2005 03:02:56 +0000 Subject: r12341: add DEBUG statement. Guenther (This used to be commit d50098518d77f9559457f558df7d11d3f026833e) --- source3/nsswitch/winbindd_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 841b114a78..81dd85e588 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -546,8 +546,10 @@ static void centry_put_string(struct cache_entry *centry, const char *s) len = strlen(s); /* can't handle more than 254 char strings. Truncating is probably best */ - if (len > 254) + if (len > 254) { + DEBUG(10,("centry_put_string: truncating len (%d) to: 254\n", len)); len = 254; + } centry_put_uint8(centry, len); centry_expand(centry, len); memcpy(centry->data + centry->ofs, s, len); -- cgit