1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix FTBFS on GNU/Hurd by removing unnecessary string truncation.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: Eric Wasylishen <ewasylishen@gmail.com>
Last-Update: 2018-02-12
---
--- textedit.app.orig/Controller.m
+++ textedit.app/Controller.m
@@ -151,7 +151,7 @@
// Given that this is a one-way service (no return), we need to put up the error panel ourselves and we do not set *error.
if (!success) {
if (!err) {
- err = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:truncatedString(filename, PATH_MAX+10), NSFilePathErrorKey, nil]];
+ err = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:filename, NSFilePathErrorKey, nil]];
}
[[NSAlert alertWithError:err] runModal];
}
|