Skip to content

Commit

Permalink
Defined referer site length as constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Jun 3, 2014
1 parent e027d31 commit ce33895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static void
process_referrers (char *referrer)
{
char *ref;
char url[512] = "";
char url[REF_SITE_LEN] = "";

if (referrer == NULL)
return;
Expand Down
1 change: 1 addition & 0 deletions parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define BW_HASHTABLES 3
#define KEY_FOUND 1
#define KEY_NOT_FOUND -1
#define REF_SITE_LEN 512

#include "commons.h"

Expand Down

0 comments on commit ce33895

Please sign in to comment.