Skip to content

Commit

Permalink
fix compile error on *bsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Nov 18, 2012
1 parent afb2445 commit da63688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/io/AsciiFile.cpp
Expand Up @@ -1064,7 +1064,7 @@ ssize_t CAsciiFile::getdelim(char **lineptr, size_t *n, char delimiter, FILE *st
if (feof(stream))
return -1;
total_bytes_read+=bytes_read;
*lineptr=SG_REALLOC(char, *lineptr, (*n)*2);
*lineptr=SG_REALLOC(char, *lineptr, *n, (*n)*2);
*n=(*n)*2;
// A better reallocated size should be used
}
Expand Down

0 comments on commit da63688

Please sign in to comment.