[brlcad-commits] CVS: brlcad/src/conv/off g-off.c,1.11,1.12
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Erik G. <eri...@us...> - 2007-09-04 15:46:27
|
Update of /cvsroot/brlcad/brlcad/src/conv/off In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18568/off Modified Files: g-off.c Log Message: use literal terminator instead of casting null (fixes compiler warning) Index: g-off.c =================================================================== RCS file: /cvsroot/brlcad/brlcad/src/conv/off/g-off.c,v retrieving revision 1.11 retrieving revision 1.12 diff -w -u -r1.11 -r1.12 --- g-off.c 26 Jul 2007 01:13:52 -0000 1.11 +++ g-off.c 4 Sep 2007 15:46:29 -0000 1.12 @@ -184,7 +184,7 @@ /* Get rid of any file name extension (probably .g). */ if ((dot = strrchr(fig_file, '.')) != (char *)NULL) - *dot = (char)NULL; + *dot = '\0'; strcat(fig_file, ".fig"); /* Add required Jack suffix. */ if ((fp_fig = fopen(fig_file, "w")) == NULL) |