summaryrefslogtreecommitdiff
path: root/comms/efax-gtk/patches/patch-ab
blob: 00699eae02b51da9740ee007485f5b920bfe369a (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.4 2005/07/22 21:35:27 adam Exp $

--- src/efax_controller.cpp.orig	2005-06-14 20:37:33.000000000 +0000
+++ src/efax_controller.cpp
@@ -229,8 +229,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);
 }
@@ -284,7 +284,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
@@ -627,8 +627,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);
 }
@@ -734,7 +734,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