summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-19 20:51:50 -0400
committermidipix <writeonce@midipix.org>2016-04-19 20:53:17 -0400
commit239674f140c47dbc4e27e3c41e9ae5a12122ccb5 (patch)
treeeb42076f546187093dfe21c35dc7acb96e1450b9 /src
parentc5928014c7ab81c7a679c00e88d62651f4d23a16 (diff)
downloadslibtool-239674f140c47dbc4e27e3c41e9ae5a12122ccb5.tar.bz2
slibtool-239674f140c47dbc4e27e3c41e9ae5a12122ccb5.tar.xz
install mode: avoid '\0' when assigning a value to a character type.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_install.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index 60fb3eb..ffb689a 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -69,7 +69,7 @@ static int slbt_exec_install_init_dstdir(
len = strlen(dstdir);
if (dstdir[--len] == '/')
- dstdir[len] = '\0';
+ dstdir[len] = 0;
/* -t DSTDIR? */
if (dest)
@@ -82,7 +82,7 @@ static int slbt_exec_install_init_dstdir(
/* remove last path component */
if ((slash = strrchr(dstdir,'/')))
- *slash = '\0';
+ *slash = 0;
return 0;
}
@@ -130,7 +130,7 @@ static int slbt_exec_install_import_libraries(
return -1;
else {
strcpy(rev,dot);
- *dot = '\0';
+ *dot = 0;
}
/* minor */
@@ -140,7 +140,7 @@ static int slbt_exec_install_import_libraries(
return -1;
else {
strcpy(minor,dot);
- *dot = '\0';
+ *dot = 0;
}
/* major */
@@ -150,7 +150,7 @@ static int slbt_exec_install_import_libraries(
return -1;
else {
strcpy(major,dot);
- *dot = '\0';
+ *dot = 0;
}
if (!(dot = strrchr(srcbuf,'.')))
@@ -264,7 +264,7 @@ static int slbt_exec_install_entry(
strcpy(lasource,entry->arg);
if ((slash = strrchr(lasource,'/'))) {
- *slash++ = '\0';
+ *slash++ = 0;
sprintf(srcfile,"%s/.libs/%s",lasource,slash);
} else
sprintf(srcfile,".libs/%s",lasource);
@@ -362,12 +362,12 @@ static int slbt_exec_install_entry(
strcpy(slnkname,target);
if ((dot = strrchr(slnkname,'.')))
- *dot = '\0';
+ *dot = 0;
else
return -1;
if ((dot = strrchr(slnkname,'.')))
- *dot = '\0';
+ *dot = 0;
else
return -1;