From 634c1162a95fcb37c55036c4adfe76592b5dcf53 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Mon, 30 Mar 2020 12:48:11 +0000 Subject: [PATCH] Set buffers appropriately so .xpm files can be read. Closes #3455 --- src/gromacs/fileio/matio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gromacs/fileio/matio.cpp b/src/gromacs/fileio/matio.cpp index dadcee08ab..dc223c6717 100644 --- a/src/gromacs/fileio/matio.cpp +++ b/src/gromacs/fileio/matio.cpp @@ -3,7 +3,7 @@ * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. - * Copyright (c) 2013,2014,2015,2017,2018,2019, by the GROMACS development team, led by + * Copyright (c) 2013,2014,2015,2017,2018,2019,2020, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://www.gromacs.org. @@ -292,7 +292,7 @@ static t_matrix read_xpm_entry(FILE* in) findLabelInLine(lineString, "type"); // discard the returned string } - if (!line || strncmp(line, "static", 6) != 0) + if (!line_buf || strncmp(line_buf, "static", 6) != 0) { gmx_input("Invalid XPixMap"); } -- 2.11.4.GIT