sysdeps/managarm: Ignore NULL in DRM_IOCTL_VERSION
@@ -1533,10 +1533,13 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
param->version_minor = resp.drm_version_minor();
param->version_patchlevel = resp.drm_version_patchlevel();
+ if(param->name)
memcpy(param->name, resp.drm_driver_name().data(), frg::min(param->name_len,
resp.drm_driver_name().size()));
+ if(param->date)
memcpy(param->date, resp.drm_driver_date().data(), frg::min(param->date_len,
resp.drm_driver_date().size()));
+ if(param->desc)
memcpy(param->desc, resp.drm_driver_desc().data(), frg::min(param->desc_len,
resp.drm_driver_desc().size()));
