aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-09-16 13:16:01 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-09-16 13:16:01 +0000
commitc31c55667e345d745fd1ffd13eb451488c78fd7d (patch)
treed9acab479d786e2c8e00445ff73565988494d1c5
parentf056b68e5f146de64afaa5faf72b3593d3b64fa8 (diff)
downloadbusybox-w32-c31c55667e345d745fd1ffd13eb451488c78fd7d.tar.gz
busybox-w32-c31c55667e345d745fd1ffd13eb451488c78fd7d.tar.bz2
busybox-w32-c31c55667e345d745fd1ffd13eb451488c78fd7d.zip
more C-compatibily, Thanks Bernhard Fischer
git-svn-id: svn://busybox.net/trunk/busybox@11482 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--miscutils/less.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 99149a51d..d7898caab 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -670,9 +670,10 @@ static char *process_regex_on_line(char *line, regex_t *pattern) {
670 char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64); 670 char *line2 = (char *) malloc((sizeof(char) * (strlen(line) + 1)) + 64);
671 char sub_line[256]; 671 char sub_line[256];
672 int prev_eo = 0; 672 int prev_eo = 0;
673 regmatch_t match_structs;
674
673 memset(sub_line, 0, 256); 675 memset(sub_line, 0, 256);
674 strcpy(line2, line); 676 strcpy(line2, line);
675 regmatch_t match_structs;
676 677
677 match_found = 0; 678 match_found = 0;
678 match_status = regexec(pattern, line2, 1, &match_structs, 0); 679 match_status = regexec(pattern, line2, 1, &match_structs, 0);