File: ftbfs-hurd.patch

package info (click to toggle)
textedit.app 5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,308 kB
  • sloc: objc: 2,863; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
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];
         }