From 2f48bef57e4eedcab67d7e38bbd3d98970ab9e3a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 20 Jul 2002 15:01:49 +0000 Subject: [PATCH] Fixed the char[] array length to fully encompass the strings bring written to them. --- src/osgGLUT/Viewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osgGLUT/Viewer.cpp b/src/osgGLUT/Viewer.cpp index 9fcb6f8be..3675916a4 100644 --- a/src/osgGLUT/Viewer.cpp +++ b/src/osgGLUT/Viewer.cpp @@ -1509,10 +1509,10 @@ void displaytext(int x, int y, char *s) int writePrims( const int ypos, osg::Statistics& stats) { - char clin[100]; // buffer to print - char ctmp[12]; + char clin[128]; // buffer to print + char ctmp[32]; + char intro[32]; // start of first line int npix=0; // offset from ypos - char intro[12]; // start of first line static char *prtypes[]= { " Point", // GL_POINTS 0x0000