Check that fgets(), scanf() receive sizeof(dst)-1 not sizeof(dst).
