38 mMsg =
new(std::nothrow)
char[strlen(msg)+1];
40 strncpy(mMsg,msg,strlen(msg)+1);
45 mMsg =
new(std::nothrow)
char[strlen(orig.what())+1];
47 strncpy(mMsg,orig.what(),strlen(orig.what())+1);
59 fprintf(stderr,
"CLAM Error: ");
63 fprintf(stderr,
"Unknown Error");
74 static const char* separation =
"\n Nested error: ";
75 size_t msgLen = strlen(mMsg);
76 size_t sepLen = strlen(separation);
77 size_t strLen = strlen(str);
80 len = msgLen + sepLen + strLen + 1;
81 msg =
new(std::nothrow)
char[len];
84 strcpy(msg+msgLen,separation);
85 strcpy(msg+msgLen+sepLen,str);