The problem seems to be the read_args() function. It fills the string, I can use it for output for example. But the find_player() function obviously can't read the string. If I use read_argv() to get my string, everything is just fine. Possible bug in read_args? Or am I understanding something wrong here?