diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index af34fe6e..d5d1fcf0 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -2013,7 +2013,7 @@ static void mknod_dev_fuse(const char *dev) if (mknod(dev, S_IFCHR | 0666, makedev(10, 229))) { ntfs_log_perror("Failed to create '%s'", dev); if (errno == EPERM) - ntfs_log_error(dev_fuse_msg); + ntfs_log_error("%s", dev_fuse_msg); } umask(mask); } @@ -2290,7 +2290,7 @@ int main(int argc, char *argv[]) #if defined(linux) || defined(__uClinux__) if (S_ISBLK(sbuf.st_mode) && (fstype == FSTYPE_FUSE)) - ntfs_log_info(fuse26_kmod_msg); + ntfs_log_info("%s", fuse26_kmod_msg); #endif setup_logging(parsed_options); diff --git a/src/utils.c b/src/utils.c index f59683d0..5f3f3db0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -133,7 +133,7 @@ void utils_mount_error(const char *volume, const char *mntpoint, int err) ntfs_log_error(hibernated_volume_msg, volume, mntpoint); break; case NTFS_VOLUME_UNCLEAN_UNMOUNT: - ntfs_log_error(unclean_journal_msg); + ntfs_log_error("%s", unclean_journal_msg); ntfs_log_error(forced_mount_msg, volume, mntpoint, volume, mntpoint); break;