Browse Source

Merge pull request #9071 from solenoglyph/hfsprogs

hfsprogs: Fix wide string literal in fsck_hfs
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
0353ca6833
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      utils/hfsprogs/patches/0016-Fix-fsckhfs-wide-literal.patch

+ 13
- 0
utils/hfsprogs/patches/0016-Fix-fsckhfs-wide-literal.patch View File

@ -0,0 +1,13 @@
Index: diskdev_cmds-332.25/fsck_hfs.tproj/dfalib/SVerify1.c
===================================================================
--- diskdev_cmds-332.25.orig/fsck_hfs.tproj/dfalib/SVerify1.c
+++ diskdev_cmds-332.25/fsck_hfs.tproj/dfalib/SVerify1.c
@@ -2848,7 +2848,7 @@ OSErr VLockedChk( SGlobPtr GPtr )
}
else // Because we don't have the unicode converters, just fill it with a dummy name.
{
- CopyMemory( "\x0dPure HFS Plus", calculatedVCB->vcbVN, sizeof(Str27) );
+ CopyMemory( u"\x0dPure HFS Plus", calculatedVCB->vcbVN, sizeof(Str27) );
}
GPtr->TarBlock = hint;

Loading…
Cancel
Save