Revision: 70724 http://sourceforge.net/p/brlcad/code/70724 Author: brlcad Date: 2018-02-22 05:51:46 +0000 (Thu, 22 Feb 2018) Log Message: ----------- explicitly include bio.h for snprintf
Modified Paths: -------------- brlcad/trunk/src/libfb/if_ogl.c Modified: brlcad/trunk/src/libfb/if_ogl.c =================================================================== --- brlcad/trunk/src/libfb/if_ogl.c 2018-02-22 01:24:03 UTC (rev 70723) +++ brlcad/trunk/src/libfb/if_ogl.c 2018-02-22 05:51:46 UTC (rev 70724) @@ -73,6 +73,7 @@ #ifdef HAVE_GL_GL_H # include <GL/gl.h> #endif +#include "bio.h" #include "bresource.h" #include "bu/color.h" @@ -1065,7 +1066,7 @@ HIDDEN int fb_ogl_open(fb *ifp, const char *file, int width, int height) { - static char title[128]; + static char title[128] = {0}; int mode, i, direct; long valuemask; XSetWindowAttributes swa; @@ -1180,13 +1181,13 @@ SGIINFO(ifp)->mi_curs_on = 1; /* Build a descriptive window title bar */ - (void)snprintf(title, 128, "BRL-CAD /dev/ogl %s, %s", - ((ifp->if_mode & MODE_2MASK) == MODE_2TRANSIENT) ? - "Transient Win": - "Lingering Win", - ((ifp->if_mode & MODE_1MASK) == MODE_1MALLOC) ? - "Private Mem" : - "Shared Mem"); + snprintf(title, 128, "BRL-CAD /dev/ogl %s, %s", + ((ifp->if_mode & MODE_2MASK) == MODE_2TRANSIENT) ? + "Transient Win": + "Lingering Win", + ((ifp->if_mode & MODE_1MASK) == MODE_1MALLOC) ? + "Private Mem" : + "Shared Mem"); /* initialize window state variables before calling ogl_getmem */ ifp->if_zoomflag = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits