Skip to content

Commit

Permalink
Using printf() will try to print an uninitialized array to the consol…
Browse files Browse the repository at this point in the history
…e, which probably isn't what we want.

fixes issue pmartz#3 imported from google code
  • Loading branch information
aumuell committed Mar 30, 2016
1 parent f00899f commit 1b83c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgEphemeris/src/osgEphemerisLib/Shmem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1b83c42

Please sign in to comment.