summaryrefslogtreecommitdiff
path: root/comms/efax-gtk/patches/patch-ab
blob: ca6c86a3ffd3913193fb43ce0fb378a49cbd0da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-ab,v 1.8 2006/05/29 06:41:38 adam Exp $

--- src/efax_controller.cpp.orig	2006-02-16 23:00:41.000000000 +0100
+++ src/efax_controller.cpp
@@ -224,8 +224,8 @@ std::pair<const char*, char* const*> Efa
 
   *temp_pp = 0;
 
-  char* prog_name = new char[std::strlen("efax-0.9a") + 1];
-  std::strcpy(prog_name, "efax-0.9a");
+  char* prog_name = new char[std::strlen("efax") + 1];
+  std::strcpy(prog_name, "efax");
 
   return std::pair<const char*, char* const*>(prog_name, exec_parms);
 }
@@ -279,7 +279,7 @@ void EfaxController::sendfax_slot(void) 
 
     // if we reached this point, then the execvp() call must have failed
     // report error and exit - uses _exit() and not exit()
-    write_error("Can't find the efax-0.9a program - please check your installation\n"
+    write_error("Can't find the efax program - please check your installation\n"
 		"and the PATH environmental variable\n");
     _exit(EXEC_ERROR); 
   } // end of child process
@@ -604,8 +604,8 @@ std::pair<const char*, char* const*> Efa
   
   *temp_pp = 0;
 
-  char* prog_name = new char[std::strlen("efax-0.9a") + 1];
-  std::strcpy(prog_name, "efax-0.9a");
+  char* prog_name = new char[std::strlen("efax") + 1];
+  std::strcpy(prog_name, "efax");
   
   return std::pair<const char*, char* const*>(prog_name, exec_parms);
 }
@@ -675,7 +675,7 @@ void EfaxController::receive(State mode)
 
       // if we reached this point, then the execvp() call must have failed
       // report the error and end this process - use _exit() and not exit()
-      write_error("Can't find the efax-0.9a program - please check your installation\n"
+      write_error("Can't find the efax program - please check your installation\n"
 		  "and the PATH environmental variable\n");
       _exit(EXEC_ERROR); 
     } // end of child process