Skip to content
Snippets Groups Projects
Commit 0741fb53 authored by Brian Carrier's avatar Brian Carrier
Browse files

minor fix to hfind fix

parent 1680ff2a
No related branches found
No related tags found
No related merge requests found
...@@ -244,6 +244,7 @@ main(int argc, char ** argv1) ...@@ -244,6 +244,7 @@ main(int argc, char ** argv1)
while (1) { while (1) {
int retval; int retval;
memset(buf, 0, 100);
#ifdef TSK_WIN32 #ifdef TSK_WIN32
int done = 0; int done = 0;
// win32 doesn't have a fgets equivalent, so we make an equivalent one // win32 doesn't have a fgets equivalent, so we make an equivalent one
...@@ -256,6 +257,7 @@ main(int argc, char ** argv1) ...@@ -256,6 +257,7 @@ main(int argc, char ** argv1)
} }
// skip the windows CR // skip the windows CR
else if (buf[i] == '\r') { else if (buf[i] == '\r') {
buf[i] = '\0';
i--; i--;
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment