Skip to content
Snippets Groups Projects
Commit 9dd9328e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

make sure to null-terminate tmp string
parent f9455d2e
No related branches found
No related tags found
No related merge requests found
// $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 // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
// //
...@@ -1468,6 +1468,7 @@ static double atofBDF(char *str) ...@@ -1468,6 +1468,7 @@ static double atofBDF(char *str)
if(str[i] == '+') tmp[j++] = 'E'; if(str[i] == '+') tmp[j++] = 'E';
tmp[j++] = str[i]; tmp[j++] = str[i];
} }
tmp[j] = '\0';
return atof(tmp); return atof(tmp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment