oh strncpy, how I love you...first parameter wrong