Skip to content
Snippets Groups Projects
Commit 38d15aac authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: sprintf -> snprintf

parent 39ed2b11
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ public: ...@@ -184,7 +184,7 @@ public:
if (str.empty() && status) { if (str.empty() && status) {
char statusstr[64]; char statusstr[64];
sprintf(statusstr,"unknown ERROR, 0x%08X",status); snprintf(statusstr,sizeof statusstr,"unknown ERROR, 0x%08X",status);
str.append(statusstr); str.append(statusstr);
} }
return(str); return(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment