From 9576c556be269e473b5f67ac9b94052bd3c8c70e Mon Sep 17 00:00:00 2001 From: schnetter Date: Sat, 6 Sep 2008 02:36:38 +0000 Subject: Make a copy of the I/O method name string when registering a new I/O method. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4503 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/IO/IOMethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/IO') diff --git a/src/IO/IOMethods.c b/src/IO/IOMethods.c index 07b1d2bc..9e123c55 100644 --- a/src/IO/IOMethods.c +++ b/src/IO/IOMethods.c @@ -124,7 +124,7 @@ int CCTKi_RegisterIOMethod (const char *thorn, const char *name) /* Initialise the I/O method structure with dummy routines */ new_method->implementation = CCTK_ThornImplementation (thorn); - new_method->name = name; + new_method->name = Util_Strdup (name); new_method->OutputGH = DummyOutputGH; new_method->OutputVarAs = DummyOutputVarAs; new_method->TriggerOutput = DummyTriggerOutput; -- cgit v1.2.3