projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b6b4a
)
Fixed incorrect offset calculations when creating the %{1}, %{2}... entries.
author
mgriego
<mgriego>
Wed, 14 Jul 2004 20:55:20 +0000
(20:55 +0000)
committer
mgriego
<mgriego>
Wed, 14 Jul 2004 20:55:20 +0000
(20:55 +0000)
src/main/valuepair.c
patch
|
blob
|
history
diff --git
a/src/main/valuepair.c
b/src/main/valuepair.c
index
075883b
..
eebe3d5
100644
(file)
--- a/
src/main/valuepair.c
+++ b/
src/main/valuepair.c
@@
-406,8
+406,8
@@
int paircmp(REQUEST *req, VALUE_PAIR *request, VALUE_PAIR *check, VALUE_PAIR **r
*/
memcpy(buffer,
auth_item->strvalue + rxmatch[i].rm_so,
- rxmatch[i].rm_eo);
- buffer[rxmatch[i].rm_eo] = '\0';
+ rxmatch[i].rm_eo
- rxmatch[i].rm_so
);
+ buffer[rxmatch[i].rm_eo
- rxmatch[i].rm_so
] = '\0';
/*
* Copy substring, and add it to