SDT rewrite: wrong descriptor length was detected

The wrong length was copied which could lead to issues in some cases

Thanks to Jerome Vuarand for discovering the bug