From 1b83c4214b0aa1faec8fc4f21573f7f6e176a231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Aumu=CC=88ller?= Date: Wed, 30 Mar 2016 13:59:10 +0200 Subject: [PATCH] Using printf() will try to print an uninitialized array to the console, which probably isn't what we want. fixes issue #3 imported from google code --- osgEphemeris/src/osgEphemerisLib/Shmem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osgEphemeris/src/osgEphemerisLib/Shmem.cpp b/osgEphemeris/src/osgEphemerisLib/Shmem.cpp index acd7c06..3d16e6d 100644 --- a/osgEphemeris/src/osgEphemerisLib/Shmem.cpp +++ b/osgEphemeris/src/osgEphemerisLib/Shmem.cpp @@ -65,7 +65,7 @@ void *Shmem::operator new( size_t size, const std::string &file) if( (fd = creat( file.c_str(), O_RDWR | 0666 )) < 0 ) { char emsg[128]; - printf( emsg, "Shmem: open(%s)", file.c_str() ); + sprintf( emsg, "Shmem: open(%s)", file.c_str() ); perror( emsg ); throw 3; }