buf_size: use strncpy() and friends to set the buf size