Author: adrian.chadd
Date: Mon Feb 2 11:58:28 2009
New Revision: 13789
Modified:
branches/LUSCA_HEAD/src/url.c
Log:
Remove strBuf() call
Modified: branches/LUSCA_HEAD/src/url.c
==============================================================================
--- branches/LUSCA_HEAD/src/url.c (original)
+++ branches/LUSCA_HEAD/src/url.c Mon Feb 2 11:58:28 2009
@@ -675,7 +675,7 @@
LOCAL_ARRAY(char, portbuf, 32);
LOCAL_ARRAY(char, loginbuf, MAX_LOGIN_SZ + 1);
char *t;
- int i;
+ int i, j;
const char *s;
static const char ts[] = "://";
@@ -721,9 +721,8 @@
for (; i < MAX_URL && *s != '\0'; i++, s++) {
buf[i] = *s;
}
- s = strBuf(request->urlpath);
- for (; i < MAX_URL && *s != '\0'; i++, s++) {
- buf[i] = *s;
+ for (j = 0; i < MAX_URL && j < strLen2(request->urlpath); i++, j++)
{
+ buf[i] = stringGetCh(&request->urlpath, j);
}
if (i >= (MAX_URL - 1)) {
buf[MAX_URL - 1] = '\0';
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---