Skip to content

Commit

Permalink
Fix for g++ compiler under Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Jul 3, 2013
1 parent 63a9e57 commit 33d4a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GridLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ int GetHypLoc(FILE *fpio, const char* filein, HypoDesc* phypo,
/* open hypocenter file */

if (fpio == NULL) {
if ((pstr = strstr(filein, ".hyp")) == NULL
if ((pstr = (char *) strstr(filein, ".hyp")) == NULL
|| ((pstr - filein) < (int) strlen(filein) - 4))
sprintf(fn_in, "%s.hyp", filein);
else
Expand Down

0 comments on commit 33d4a71

Please sign in to comment.