diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-20 20:30:37 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-20 20:30:37 +0000 |
commit | 062b28b59d87914417ecae8e96b28437e69d8159 (patch) | |
tree | 2acc4d9f502a3ca17299efce9d40f8cb4abe50d3 /src/Expression.c | |
parent | c41ca4a58075008032bc23a162156f19cc4c2c6a (diff) |
Bug fixes.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@68 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Expression.c')
-rw-r--r-- | src/Expression.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Expression.c b/src/Expression.c index 2f8e56a..9fdfd4b 100644 --- a/src/Expression.c +++ b/src/Expression.c @@ -652,7 +652,7 @@ static pToken *newtoken(const char *tokenstart, const char *tokenend) this->last = NULL; this->next = NULL; - this->token = (char *)malloc(tokenend-tokenend+2); + this->token = (char *)malloc(tokenend-tokenstart+2); if(this->token) { for(position=tokenstart, newpos=this->token; @@ -662,7 +662,7 @@ static pToken *newtoken(const char *tokenstart, const char *tokenend) *newpos = *position; } /* Just in case not already null terminated */ - *(newpos+1) = 0; + *newpos = 0; /* Strip off any trailing spaces */ for(; newpos >= this->token && |