From 79f0a2edf424babe92ac7d84c10bd5b5152c2ae1 Mon Sep 17 00:00:00 2001 From: rods Date: Tue, 16 Jun 1998 00:04:43 +0000 Subject: [PATCH] fixed UNIX resource protocol git-svn-id: svn://10.0.0.236/trunk@3840 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsURL.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mozilla/network/module/nsURL.cpp b/mozilla/network/module/nsURL.cpp index 6e8f5b961b4..f55fd1bf808 100644 --- a/mozilla/network/module/nsURL.cpp +++ b/mozilla/network/module/nsURL.cpp @@ -471,12 +471,13 @@ char *mangleResourceIntoFileURL(const char* aResourceFileName) } else { if (fgets(resourceBase, MAXPATHLEN, pp)) { - resourceBase[strlen(resourceBase)-1] = 0; + printf("[%s] %d\n", resourceBase, PL_strlen(resourceBase)); + resourceBase[PL_strlen(resourceBase)-1] = 0; } - else + else { printf("RESOURCE protocol error in nsURL::mangeResourceIntoFileURL 2\n"); - - return(nsnull); + return(nsnull); + } } printf("RESOURCE name %s\n", resourceBase);