* Fix URL Debugging code to work with StrBuf
authorWilfried Göesgens <willi@citadel.org>
Wed, 10 Sep 2008 15:36:50 +0000 (15:36 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 10 Sep 2008 15:36:50 +0000 (15:36 +0000)
webcit/webcit.c

index bf8fd1f326b9a7fa432c66781ea9b4b78874fecb..166842da332b6bd5c6013db0372fb560a9ae54c3 100644 (file)
@@ -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
        }