summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regularexpressions/regex_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/regularexpressions/regex_match.c')
-rw-r--r--misc/examples/regularexpressions/regex_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regularexpressions/regex_match.c b/misc/examples/regularexpressions/regex_match.c
index 11426d2d..9106ffbd 100644
--- a/misc/examples/regularexpressions/regex_match.c
+++ b/misc/examples/regularexpressions/regex_match.c
@@ -22,7 +22,7 @@ int main(void)
// extract and convert all numbers in str to floats
c_formatch (i, &re, str)
- cstack_float_push(&vec, (float)atof(i.match[0].str));
+ cstack_float_push(&vec, (float)atof(i.match[0].buf));
c_foreach (i, cstack_float, vec)
printf(" %g\n", (double)*i.ref);