summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-06-27 12:03:31 +0200
committerSander Vrijders <[email protected]>2016-06-27 12:03:31 +0200
commit80765f1d6ea16892224be8da954e5b0a4c53303b (patch)
tree8d48f58b2c3590d5f5f8d7d2d46202ff945bf3cf /src/lib/ipcp.c
parentb13d60ac083195af6caee475fb36844c5177a0cf (diff)
downloadouroboros-80765f1d6ea16892224be8da954e5b0a4c53303b.tar.gz
ouroboros-80765f1d6ea16892224be8da954e5b0a4c53303b.zip
build: Fix installation prefix
The installation prefix was taking a trailing backslash, while it is common not to do so. Fixed it so that any trailing backslash is removed by the compilation and installation scripts.
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r--src/lib/ipcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c
index 730880f9..77263bcf 100644
--- a/src/lib/ipcp.c
+++ b/src/lib/ipcp.c
@@ -105,7 +105,7 @@ pid_t ipcp_create(char * ipcp_name,
pid_t pid = 0;
char irmd_pid[10];
size_t len = 0;
- char * ipcp_dir = "sbin/";
+ char * ipcp_dir = "/sbin/";
char * full_name = NULL;
char * exec_name = NULL;
@@ -132,7 +132,7 @@ pid_t ipcp_create(char * ipcp_name,
else
exit(EXIT_FAILURE);
- len += strlen(INSTALL_DIR);
+ len += strlen(INSTALL_PREFIX);
len += strlen(ipcp_dir);
len += strlen(exec_name);
len += 1;
@@ -143,7 +143,7 @@ pid_t ipcp_create(char * ipcp_name,
exit(EXIT_FAILURE);
}
- strcpy(full_name, INSTALL_DIR);
+ strcpy(full_name, INSTALL_PREFIX);
strcat(full_name, ipcp_dir);
strcat(full_name, exec_name);
full_name[len] = '\0';