Parent Directory
|
Revision Log
|
Patch
revision 3483 by jpye, Sat Jan 18 02:36:14 2020 UTC | revision 3484 by jpye, Tue Dec 7 01:47:45 2021 UTC | |
---|---|---|
# | Line 92 Library::load(const char *filename){ | Line 92 Library::load(const char *filename){ |
92 | ||
93 | const char *msg = getLoadErrorMessage(status); | const char *msg = getLoadErrorMessage(status); |
94 | ||
95 | char msg1[100]; | #define MSGLEN 4096 |
96 | sprintf(msg1,msg,filename); | char msg1[MSGLEN]; |
97 | snprintf(msg1,MSGLEN,msg,filename); | |
98 | ||
99 | if(status<0 || status>0){ | if(status<0 || status>0){ |
100 | throw std::runtime_error(msg1); | throw std::runtime_error(msg1); |
|
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |