projects
/
freeradius.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Length of match[i] = end - start, not just end.
[freeradius.git]
/
src
/
main
/
valuepair.c
diff --git
a/src/main/valuepair.c
b/src/main/valuepair.c
index
a34056b
..
30c0310
100644
(file)
--- a/
src/main/valuepair.c
+++ b/
src/main/valuepair.c
@@
-401,8
+401,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