#include <uilib/uilib.h>
#include <gdk/gdkkeysyms.h>
+#include <util/buffer.h>
#include "generic/callback.h"
#include "string/string.h"
globalOutputStream() << "WARNING: could not extract the relative path, using full path instead\n";
}
- char fileNameWithoutExt[512];
+ auto fileNameWithoutExt = u::buffer<512>();
strncpy( fileNameWithoutExt, relative, sizeof( fileNameWithoutExt ) - 1 );
fileNameWithoutExt[512 - 1] = '\0';
fileNameWithoutExt[strlen( fileNameWithoutExt ) - 4] = '\0';
void XYWnd::XY_DrawGrid( void ) {
float x, y, xb, xe, yb, ye;
float w, h, a;
- char text[32];
+ auto text = u::buffer<32>();
float step, minor_step, stepx, stepy;
step = minor_step = stepx = stepy = GetGridSize();
float x, y, xb, xe, yb, ye;
float w, h;
- char text[32];
+ auto text = u::buffer<32>();
glDisable( GL_TEXTURE_2D );
glDisable( GL_TEXTURE_1D );