Vogelsong, Giants ink one-year deal