Author: adrian.chadd
Date: Sun Feb 1 21:35:25 2009
New Revision: 13776
Modified:
branches/LUSCA_HEAD/src/url.c
Log:
strBuf() -> strLen2() / strBuf2()
(61 to go!)
Modified: branches/LUSCA_HEAD/src/url.c
==============================================================================
--- branches/LUSCA_HEAD/src/url.c (original)
+++ branches/LUSCA_HEAD/src/url.c Sun Feb 1 21:35:25 2009
@@ -618,7 +618,7 @@
urlbuf = (char *) xmalloc(MAX_URL * sizeof(char));
if (req->protocol == PROTO_URN) {
- snprintf(urlbuf, MAX_URL, "urn:%s", strBuf(req->urlpath));
+ snprintf(urlbuf, MAX_URL, "urn:%.*s", strLen2(req->urlpath),
strBuf2(req->urlpath));
return (urlbuf);
}
if (req->port != urlDefaultPort(req->protocol)) {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---