replace sprintf -> strcpy where its not needed.

This commit is contained in:
Campbell Barton
2013-03-12 12:47:57 +00:00
parent b7b14ac186
commit eefee7a25e
2 changed files with 3 additions and 3 deletions

View File

@@ -3511,7 +3511,7 @@ void BKE_ptcache_update_info(PTCacheID *pid)
else if (totframes && cache->totpoint)
BLI_snprintf(cache->info, sizeof(cache->info), IFACE_("%i points found!"), cache->totpoint);
else
BLI_snprintf(cache->info, sizeof(cache->info), IFACE_("No valid data to read!"));
BLI_strncpy(cache->info, IFACE_("No valid data to read!"), sizeof(cache->info));
return;
}

View File

@@ -865,11 +865,11 @@ static void setNearestAxis2d(TransInfo *t)
/* no correction needed... just use whichever one is lower */
if (abs(t->mval[0] - t->con.imval[0]) < abs(t->mval[1] - t->con.imval[1]) ) {
t->con.mode |= CON_AXIS1;
BLI_snprintf(t->con.text, sizeof(t->con.text), IFACE_(" along Y axis"));
BLI_strncpy(t->con.text, IFACE_(" along Y axis"), sizeof(t->con.text));
}
else {
t->con.mode |= CON_AXIS0;
BLI_snprintf(t->con.text, sizeof(t->con.text), IFACE_(" along X axis"));
BLI_strncpy(t->con.text, IFACE_(" along X axis"), sizeof(t->con.text));
}
}