use correct array bound when accessing c_namespaces