summarylogtreecommitdiffstats
path: root/0001-Use-getcwd.patch
blob: 5859f8c20e154606481af875b8b2a268157278ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/shared/util.c
+++ b/shared/util.c
@@ -370,7 +370,9 @@
 	if (path_is_absolute(p))
 		return strdup(p);
 
-	cwd = get_current_dir_name();
+	char cwdbuff[4096];
+	memset(cwdbuff, 0, 4096);
+	cwd = getcwd(cwdbuff, 4096);
 	if (!cwd)
 		return NULL;