diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2012-06-04 15:29:48 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2012-06-04 15:29:48 -0800 |
| commit | c95c61c3b12172c20e85bc0c214403ac6f212e6d (patch) | |
| tree | 2a790a10bf7c55e26137f659a257ebfff909a5f7 /src | |
| parent | 5a0fa135478a2784db573a7400808561fcf30d95 (diff) | |
| download | dmstools-c95c61c3b12172c20e85bc0c214403ac6f212e6d.tar.gz dmstools-c95c61c3b12172c20e85bc0c214403ac6f212e6d.tar.bz2 dmstools-c95c61c3b12172c20e85bc0c214403ac6f212e6d.tar.xz dmstools-c95c61c3b12172c20e85bc0c214403ac6f212e6d.zip | |
Updating comments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/posixregex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posixregex.c b/src/posixregex.c index dd9affe..42096b3 100644 --- a/src/posixregex.c +++ b/src/posixregex.c | |||
| @@ -306,12 +306,12 @@ int main(int argc, char * argv[]) | |||
| 306 | } else { | 306 | } else { |
| 307 | if (!(quiet)) | 307 | if (!(quiet)) |
| 308 | printf(" found\n"); | 308 | printf(" found\n"); |
| 309 | |||
| 310 | // copies sub matches in buffer string | ||
| 311 | if (verbosity) | 309 | if (verbosity) |
| 312 | { | 310 | { |
| 311 | // displays submatches | ||
| 313 | for(y = 0; ((y < MAX_MATCHES) && (matches[y].rm_eo > -1)); y++) | 312 | for(y = 0; ((y < MAX_MATCHES) && (matches[y].rm_eo > -1)); y++) |
| 314 | { | 313 | { |
| 314 | // copies sub matches in buffer string | ||
| 315 | memset(str, 0, (size_t)BUFFER_SIZE); | 315 | memset(str, 0, (size_t)BUFFER_SIZE); |
| 316 | if ((str_len = matches[y].rm_eo - matches[y].rm_so)) | 316 | if ((str_len = matches[y].rm_eo - matches[y].rm_so)) |
| 317 | { | 317 | { |
