[brlcad-commits] SF.net SVN: brlcad:[49302] brlcad/trunk/src/nirt/nirt.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2012-02-07 09:24:08
|
Revision: 49302 http://brlcad.svn.sourceforge.net/brlcad/?rev=49302&view=rev Author: brlcad Date: 2012-02-07 09:23:57 +0000 (Tue, 07 Feb 2012) Log Message: ----------- they can both be bu_strlcpy() Modified Paths: -------------- brlcad/trunk/src/nirt/nirt.c Modified: brlcad/trunk/src/nirt/nirt.c =================================================================== --- brlcad/trunk/src/nirt/nirt.c 2012-02-07 09:23:31 UTC (rev 49301) +++ brlcad/trunk/src/nirt/nirt.c 2012-02-07 09:23:57 UTC (rev 49302) @@ -580,9 +580,9 @@ local2base = rtip->rti_dbip->dbi_local2base; tmp_str = bu_units_string(local2base); if (tmp_str) { - bu_strlcpy(local_u_name, bu_units_string(local2base), sizeof(local_u_name)); + bu_strlcpy(local_u_name, tmp_str, sizeof(local_u_name)); } else { - strcpy(local_u_name, "Unknown units"); + bu_strlcpy(local_u_name, "Unknown units", sizeof(local_u_name)); } if (silent_flag != SILENT_YES) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |