replace BLI_strncpy with BLI_strncpy_utf8 where input isnt ensured to be valid.
[blender.git] / source / blender / editors / armature / poselib.c
index 6e64d33..67c93c4 100644 (file)
@@ -1439,9 +1439,7 @@ static void poselib_preview_init_data (bContext *C, wmOperator *op)
        pld->pose->flag &= ~POSE_DO_UNLOCK;
        
        /* clear strings + search */
-       strcpy(pld->headerstr, "");
-       strcpy(pld->searchstr, "");
-       strcpy(pld->searchold, "");
+       pld->headerstr[0]= pld->searchstr[0]= pld->searchold[0]= '\0';
        pld->search_cursor= 0;
 }