snprintf() third parameter in if(lineNum) construction of error() function. The third parameter
changed to "%s", fourth parameter removed in the if(realpath() == Null)
of setContent() function.
char realpathBuf[PATH_MAX];
if(realpath(_fileName, realpathBuf) == NULL){
char realpathBuf[PATH_MAX];
if(realpath(_fileName, realpathBuf) == NULL){
- error(0, _fileName, "realpath('%s') failed: %s", _fileName, strerror(errno));
+ error(0, _fileName, "%s", strerror(errno));
char * buf = (char*)mempool->alloc(len);
if(lineNum)
char * buf = (char*)mempool->alloc(len);
if(lineNum)
- (void) snprintf(buf, len, "DOTCONF++: file '%s', line %d: %s\n", fileName, lineNum, msg);
+ (void) snprintf(buf, len, "File '%s', line %d: %s\n", fileName, lineNum, msg);
- (void) snprintf(buf, len, "DOTCONF++: file '%s': %s\n", fileName, msg);
+ (void) snprintf(buf, len, "File '%s': %s\n", fileName, msg);
if (errorCallback) {
errorCallback(errorCallbackData, buf);
if (errorCallback) {
errorCallback(errorCallbackData, buf);