From 7e6f14f9f4d8755f5430e4771d21469fe7401e41 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Mon, 2 Dec 2013 15:25:42 +0100 Subject: Fix to tng_residue_atoms_get() diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 7084b4a..f773e73 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -8097,7 +8097,8 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atoms_get TNG_ASSERT(atoms, "TNG library: atoms must not be a NULL pointer"); TNG_ASSERT(n, "TNG library: n must not be a NULL pointer"); - **atoms = &molecule->atoms[residue->atoms_offset]; + *atoms = &molecule->atoms; + *atoms += residue->atoms_offset; *n = residue->n_atoms; return(TNG_SUCCESS); -- cgit v0.10.1