From 399295a4903001def80de9d870e540e346069f1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 10 Sep 2008 15:36:50 +0000 Subject: [PATCH] * Fix URL Debugging code to work with StrBuf --- webcit/webcit.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webcit/webcit.c b/webcit/webcit.c index bf8fd1f32..166842da3 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -149,7 +149,10 @@ void addurls(StrBuf *url) up = bptr; ++up; #ifdef DEBUG_URLSTRINGS - lprintf(9, "%s = [%ld] %s\n", u->url_key, u->url_data_size, ChrPtr(u->url_data)); + lprintf(9, "%s = [%ld] %s\n", + u->url_key, + StrLength(u->url_data), + ChrPtr(u->url_data)); #endif } //free(buf); @@ -1163,7 +1166,10 @@ void upload_handler(char *name, char *filename, char *partnum, char *disp, Put(WC->urlstrings, u->url_key, strlen(u->url_key), u, free_url); #ifdef DEBUG_URLSTRINGS - lprintf(9, "Key: <%s> len: [%ld] Data: <%s>\n", u->url_key, u->url_data_size, u->url_data); + lprintf(9, "Key: <%s> len: [%ld] Data: <%s>\n", + u->url_key, + StrLength(u->url_data), + ChrPtr(u->url_data)); #endif } -- 2.39.2