Merge gromacs-4-6 into master
[alexxy/gromacs.git] / src / programs / g_protonate / g_protonate.c
index 6ccd59a9c9fea76a353043edc0c4f572a7029f3a..91719a60af4911345e4a7400da0b5b8c92d982b2 100644 (file)
@@ -157,7 +157,7 @@ int main (int argc,char *argv[])
     iatoms->resinfo[resind] = atoms->resinfo[atoms->atom[index[i]].resind];
     /* allocate some space for the rtp name and copy from name */
     snew(iatoms->resinfo[resind].rtp,1);
-    iatoms->resinfo[resind].rtp = gmx_strdup(atoms->resinfo[resind].name);
+    *iatoms->resinfo[resind].rtp = gmx_strdup(*atoms->resinfo[resind].name);
 
     iatoms->nres = max(iatoms->nres, iatoms->atom[i].resind+1);
   }