From e433a86452eccfd7783d897192b1050e9ad57be3 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 3 Feb 2004 22:34:16 +0000
Subject: [PATCH] This seems to fix the crash Laurent experiences with
 combine_timesteps (but I don't understand exactly why).

---
 Common/Views.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Common/Views.cpp b/Common/Views.cpp
index 47aaee2ad5..aacc99a394 100644
--- a/Common/Views.cpp
+++ b/Common/Views.cpp
@@ -1,4 +1,4 @@
-// $Id: Views.cpp,v 1.109 2004-01-25 10:13:11 geuzaine Exp $
+// $Id: Views.cpp,v 1.110 2004-02-03 22:34:16 geuzaine Exp $
 //
 // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
 //
@@ -1471,7 +1471,7 @@ void CombineViews(int all, int remove)
 // Combine views (merge time steps)
 
 struct nameidx{
-  char *name;
+  char name[256];
   List_T *indices;
 };
 
@@ -1562,9 +1562,9 @@ void CombineViews_Time(int how, int remove)
     if(how || v->Visible) {
       nameidx id;
       if(how == 2)
-	id.name = v->Name;
+	strcpy(id.name, v->Name);
       else
-	id.name = "all";
+	strcpy(id.name, "all");
       if((pid = (struct nameidx*)List_PQuery(ids, &id, fcmp_name))){
 	List_Add(pid->indices, &i);
       }
-- 
GitLab