From fef2e1439da90e6ef495ed8d63ca670b97b059a4 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 31 Jul 2016 17:54:01 +0200 Subject: [PATCH] gnuplot.c, ft_writesimple(), command 'wrdata', use the given filename literally --- src/frontend/plotting/gnuplot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/plotting/gnuplot.c b/src/frontend/plotting/gnuplot.c index 4bc211464..df4b87449 100644 --- a/src/frontend/plotting/gnuplot.c +++ b/src/frontend/plotting/gnuplot.c @@ -307,8 +307,6 @@ ft_writesimple(double *xlims, double *ylims, char *filename, char *title, char * int i, numVecs; bool appendwrite; - char filename_data[128]; - NG_IGNORE(xlims); NG_IGNORE(ylims); NG_IGNORE(title); @@ -317,7 +315,6 @@ ft_writesimple(double *xlims, double *ylims, char *filename, char *title, char * NG_IGNORE(gridtype); NG_IGNORE(plottype); - sprintf(filename_data, "%s.data", filename); appendwrite = cp_getvar("appendwrite", CP_BOOL, NULL); /* Sanity checking. */ @@ -328,7 +325,7 @@ ft_writesimple(double *xlims, double *ylims, char *filename, char *title, char * return; /* Open the output data file. */ - if ((file_data = fopen(filename_data, appendwrite ? "a" : "w")) == NULL) { + if ((file_data = fopen(filename, appendwrite ? "a" : "w")) == NULL) { perror(filename); return; }