diff --git a/src/nb_ndarray.cpp b/src/nb_ndarray.cpp index 6e7b59a8..b2017fdf 100644 --- a/src/nb_ndarray.cpp +++ b/src/nb_ndarray.cpp @@ -440,7 +440,7 @@ ndarray_handle *ndarray_import(PyObject *o, const ndarray_req *req, return nullptr; const char *prefix = nullptr; - char dtype[9]; + char dtype[11]; if (dt.code == (uint8_t) dlpack::dtype_code::Bool) { std::strcpy(dtype, "bool"); } else {