From 9dd9328e072b9634b48be9234ea6b840a534f431 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 3 Sep 2006 17:26:07 +0000 Subject: [PATCH] make sure to null-terminate tmp string --- Geo/GModelIO.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO.cpp b/Geo/GModelIO.cpp index 62ef9cbde0..4ea273fa39 100644 --- a/Geo/GModelIO.cpp +++ b/Geo/GModelIO.cpp @@ -1,4 +1,4 @@ -// $Id: GModelIO.cpp,v 1.40 2006-09-03 16:39:44 geuzaine Exp $ +// $Id: GModelIO.cpp,v 1.41 2006-09-03 17:26:07 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -1468,6 +1468,7 @@ static double atofBDF(char *str) if(str[i] == '+') tmp[j++] = 'E'; tmp[j++] = str[i]; } + tmp[j] = '\0'; return atof(tmp); } -- GitLab