Changeset 5113:48625b8141d7 for bcache.c
Legend:
- Unmodified
- Added
- Removed
-
bcache.c
r5034 r5113 58 58 */ 59 59 url.path = NULL; 60 if (url_ciss_tostring (&url, host, sizeof (host), 0) < 0)60 if (url_ciss_tostring (&url, host, sizeof (host), U_PATH) < 0) 61 61 { 62 62 dprint (1, (debugfile, "bcache_path: URL to string failed\n")); … … 65 65 66 66 dprint (3, (debugfile, "bcache_path: URL: '%s'\n", host)); 67 68 /* transform URL scheme:// to scheme: */69 for (s = p = host; *s; s++)70 /* keep trailing slash */71 if (*s != '/' || *(s + 1) == '\0')72 *p++ = *s;73 *p = '\0';74 67 75 68 len = snprintf (dst, dstlen-1, "%s/%s%s%s", MessageCachedir,
