summaryrefslogtreecommitdiff
path: root/cad/geda/patches/patch-aa
blob: e82bad81ea598a1c078b5ffb4a0905882cd562d8 (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
$NetBSD: patch-aa,v 1.9 2004/03/05 13:03:47 dmcmahill Exp $

--- graphman/raw2gw.c.orig	Thu Dec 11 08:15:03 2003
+++ graphman/raw2gw.c
@@ -27,6 +27,7 @@
 */
 
 #include <stdio.h>
+#include <sys/param.h>
 #include <unistd.h>
 
 
@@ -34,7 +35,7 @@
 int main(int iArgn, const char *szArgv[])
 {
 	FILE *hFile;
-	char *szDir;
+	char szDir[MAXPATHLEN];
 	
 	if (iArgn < 2)
 		return 0;
@@ -47,7 +48,7 @@ int main(int iArgn, const char *szArgv[]
 		return -1;
 	}
 	
-	szDir = get_current_dir_name();
+	getcwd(szDir, MAXPATHLEN);
 	
 	hFile = fopen(szArgv[2], "w");
 	if (hFile == NULL)