Fix uber evil (-15 alignment points) own buffer overflow
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 16:53:35 +0000 (16:53 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 9 Oct 2013 16:53:35 +0000 (16:53 +0000)
source/blender/editors/sculpt_paint/paint_cursor.c

index 9649a4c5de832ab340f622875a63ad1100b548a4..e1a2f645dfa1406549fc59d19907859c6eb261ed 100644 (file)
@@ -97,7 +97,7 @@ void paint_cursor_delete_textures()
 
        memset(&primary_snap, 0, sizeof(TexSnapshot));
        memset(&secondary_snap, 0, sizeof(TexSnapshot));
-       memset(&cursor_snap, 0, sizeof(TexSnapshot));
+       memset(&cursor_snap, 0, sizeof(CursorSnapshot));
 
        BKE_paint_invalidate_overlay_all();
 }