fixed an off-by-one typo in -c argument