Patch #6264
[blender-staging.git] / source / blender / src / drawimage.c
index 40009b73308f8e036db34ed47796f51028442590..63e5031070bb9d419e1cec93f7a2c5df56a6aef1 100644 (file)
@@ -2299,7 +2299,8 @@ void imagewin_store_spare(void)
                ibuf= BKE_image_get_ibuf(sima->image, &sima->iuser);
                sima->spare= IMB_dupImBuf(ibuf);
                
-               BLI_strncpy(sima->info_spare, sima->info_str, RW_MAXTEXT);
+               if(sima->info_str)
+                       BLI_strncpy(sima->info_spare, sima->info_str, RW_MAXTEXT);
 
        }
 }