Fix cppcheck 1.64 warnings
[alexxy/gromacs.git] / src / gromacs / mdlib / mdebin.c
index a8e4a0fb6cabfc27cc915856f5a40a6e48bf2036..f7cd4a32569480ba437d50192932c365ff6ebb57 100644 (file)
@@ -734,7 +734,7 @@ static void print_lambda_vector(t_lambda *fep, int i,
     if (Nsep > 1)
     {
         /* and add the closing parenthesis */
-        str += sprintf(str, ")");
+        sprintf(str, ")");
     }
 }