Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelena Mirkovic committed Mar 28, 2022
1 parent 82d8960 commit 5c065e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amonsenss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,9 @@ double read_one_line(void* nf, char* format, char* line, u_char* p, struct pcap
if (!strcmp(format, "nf") || !strcmp(format, "ft") || !strcmp(format,"fr"))
{
char* s = fgets(line, MAXLINE, (FILE*) nf);
if (s == NULL)
return -1;

char tmpline[MAXLINE];
strcpy(tmpline, line);

Expand Down

0 comments on commit 5c065e9

Please sign in to comment.