diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2021-11-06 00:54:35 +0100 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-11-06 00:54:35 +0100 |
commit | 8b9f665c66d068b9ceeb02c74a9467175625c1db (patch) | |
tree | a0a466383a03d6209843e8a57dec5a559c0eda13 /thunar | |
parent | f33af7538ab864660a09839cd344d08b1bb3cc45 (diff) | |
download | thunar-8b9f665c66d068b9ceeb02c74a9467175625c1db.tar.gz |
Use g_strcmp0 over strcmp to prevent crash (Issue #679)
Diffstat (limited to 'thunar')
-rw-r--r-- | thunar/thunar-transfer-job.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/thunar/thunar-transfer-job.c b/thunar/thunar-transfer-job.c index 3735228e..47b3e1c1 100644 --- a/thunar/thunar-transfer-job.c +++ b/thunar/thunar-transfer-job.c @@ -833,12 +833,12 @@ thunar_transfer_job_copy_node (ThunarTransferJob *job, { fs_type = g_file_info_get_attribute_string (fs_info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE); use_fat_name_scheme = - !strcmp (fs_type, "fat") || - !strcmp (fs_type, "vfat") || - !strcmp (fs_type, "fuse") || - !strcmp (fs_type, "ntfs") || - !strcmp (fs_type, "msdos") || - !strcmp (fs_type, "msdosfs"); + !g_strcmp0 (fs_type, "fat") || + !g_strcmp0 (fs_type, "vfat") || + !g_strcmp0 (fs_type, "fuse") || + !g_strcmp0 (fs_type, "ntfs") || + !g_strcmp0 (fs_type, "msdos") || + !g_strcmp0 (fs_type, "msdosfs"); } else { |