projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38013e3
)
more C-compatibily, Thanks Bernhard Fischer
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Fri, 16 Sep 2005 13:16:01 +0000
(13:16 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Fri, 16 Sep 2005 13:16:01 +0000
(13:16 -0000)
miscutils/less.c
patch
|
blob
|
history
diff --git
a/miscutils/less.c
b/miscutils/less.c
index 99149a51d06faf8fc65336dc1d819716d51ef074..d7898caab96ee5df2e5555cce18cbe2a7d693e82 100644
(file)
--- a/
miscutils/less.c
+++ b/
miscutils/less.c
@@
-670,9
+670,10
@@
static char *process_regex_on_line(char *line, regex_t *pattern) {
char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64);
char sub_line[256];
int prev_eo = 0;
+ regmatch_t match_structs;
+
memset(sub_line, 0, 256);
strcpy(line2, line);
- regmatch_t match_structs;
match_found = 0;
match_status = regexec(pattern, line2, 1, &match_structs, 0);