summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/IO/IOMethods.c2
1 files changed, 1 insertions, 1 deletions
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;