You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
828 B

Decsription: Fix FTBFS due to invalid syntax that only works with Clang.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: info@cenon.com
Last-Update: 2018-03-12
---
--- cenon.app.orig/VHFImport/PSImport.m
+++ cenon.app/VHFImport/PSImport.m
@@ -180,7 +180,10 @@
NSString *output;
[task setLaunchPath: @"/bin/sh"];
- [task setArguments:@[@"-c", [NSString stringWithFormat:@"%@ -h | grep %@", gsPath, gsDev]] ];
+ [task setArguments:
+ [NSArray arrayWithObjects: @"-c",
+ [NSString stringWithFormat:@"%@ -h | grep %@",
+ gsPath, gsDev], nil]];
[task setStandardOutput:pipe];
[task launch];
output = [[NSString alloc] initWithData:[file readDataToEndOfFile] encoding:NSUTF8StringEncoding];