mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Fix crash on torrent filenames in non-UTF-8 encoding (#4144)
This commit is contained in:
15
macosx/NSDataAdditions.h
Normal file
15
macosx/NSDataAdditions.h
Normal file
@@ -0,0 +1,15 @@
|
||||
// This file Copyright © 2022 Transmission authors and contributors.
|
||||
// It may be used under the MIT (SPDX: MIT) license.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface NSData (NSDataAdditions)
|
||||
|
||||
- (NSString*)hexString;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user