diff --git a/src/ansi_c_implementation/NLMSvariants.c b/src/ansi_c_implementation/NLMSvariants.c index d8913f7..e8ee57f 100644 --- a/src/ansi_c_implementation/NLMSvariants.c +++ b/src/ansi_c_implementation/NLMSvariants.c @@ -671,12 +671,7 @@ void mkSvgGraph(point_t points[]) { if (input == NULL) { printf("No inputfile at mkSvgGraph()"); exit(EXIT_FAILURE); - } - - fseek(input, 0, SEEK_END); - long fpLength = ftell(input); - fseek(input, 0, SEEK_SET); - + } char buffer[131072] = ""; // Bit dirty // char *buffer = (char *) malloc ( sizeof(char) * ( ( 3 * mlData->samplesCount ) + fpLength + 1 ) ); diff --git a/src/cpp_implementation/NLMSvariants.cpp b/src/cpp_implementation/NLMSvariants.cpp index d8913f7..e8ee57f 100644 --- a/src/cpp_implementation/NLMSvariants.cpp +++ b/src/cpp_implementation/NLMSvariants.cpp @@ -671,12 +671,7 @@ void mkSvgGraph(point_t points[]) { if (input == NULL) { printf("No inputfile at mkSvgGraph()"); exit(EXIT_FAILURE); - } - - fseek(input, 0, SEEK_END); - long fpLength = ftell(input); - fseek(input, 0, SEEK_SET); - + } char buffer[131072] = ""; // Bit dirty // char *buffer = (char *) malloc ( sizeof(char) * ( ( 3 * mlData->samplesCount ) + fpLength + 1 ) );