diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-13 15:05:14 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-13 15:05:14 (GMT) |
commit | 78f166490699f28f156a041f2a0755f6e71d794b (patch) | |
tree | e0fac2f9357c582ae6dc41d9b6fce8548aef9526 /src | |
parent | f3a885bdaf81bef5cfa1e3bc0bf91fb4d396ea44 (diff) |
Some fixes in tng_trajectory_init_from_src()
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 71ac2d6..eaf91f3 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -9590,10 +9590,10 @@ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init_from_src(tng_trajector frame_set = &dest->current_trajectory_frame_set; - dest->input_file_path = 0; + strcpy(dest->input_file_path, src->input_file_path); if(src->input_file) { - dest->input_file = fopen(src->input_file_path, "r"); + dest->input_file = fopen(dest->input_file_path, "r"); } else { @@ -9601,10 +9601,10 @@ tng_function_status DECLSPECDLLEXPORT tng_trajectory_init_from_src(tng_trajector } dest->input_file_len = src->input_file_len; - dest->output_file_path = 0; + strcpy(dest->output_file_path, src->output_file_path); if(src->output_file) { - dest->output_file = fopen(src->output_file_path, "w+"); + dest->output_file = fopen(dest->output_file_path, "w+"); } else { |