fix windows build and m_spec overflow

Note that a char[32] was too small. The test is implicitly testing this as well.