const char* referencedFrom = this->getPath();
char buf[strlen(requiredLib.name)+strlen(referencedFrom)+strlen(formatString)+strlen(msg)+2];
sprintf(buf, formatString, requiredLib.name, referencedFrom, msg);
+ fLibrariesLoaded = false;
throw strdup(buf); // this is a leak if exception doesn't halt program
}
// ok if weak library not found
struct statfs statfs_buf;
if ( fstatfs(dst, &statfs_buf) != 0 )
throwf("can't fstatfs(), errno=%d for %s", errno, tempFile);
- uint64_t freespace = statfs_buf.f_bavail * statfs_buf.f_bsize;
+ uint64_t freespace = (uint64_t)statfs_buf.f_bavail * (uint64_t)statfs_buf.f_bsize;
// closing notes:
// ok to close file after mapped in