Fix possible memory over-read in apps/s_client.c