diff options
author | midipix <writeonce@midipix.org> | 2016-04-19 20:52:34 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-19 20:53:20 -0400 |
commit | 5b792c8ff99d0e01e74971e5eeb0323c441dc63b (patch) | |
tree | 81fa475527f56c752c7b854c7325e200fee6454e /src/logic | |
parent | 239674f140c47dbc4e27e3c41e9ae5a12122ccb5 (diff) | |
download | slibtool-5b792c8ff99d0e01e74971e5eeb0323c441dc63b.tar.bz2 slibtool-5b792c8ff99d0e01e74971e5eeb0323c441dc63b.tar.xz |
link mode: avoid '\0' when assigning a value to a character type.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 32731b3..eb72dec 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -290,10 +290,10 @@ static int slbt_exec_link_adjust_argument_vector( sprintf(*carg,"-L%s",arg); mark = strrchr(*carg,'/'); - *mark = '\0'; + *mark = 0; if (ectx->fwrapper) { - *slash = '\0'; + *slash = 0; if (fprintf(ectx->fwrapper, "DL_PATH=\"$DL_PATH$COLON%s/%s\"\n" @@ -310,7 +310,7 @@ static int slbt_exec_link_adjust_argument_vector( sprintf(mark,"-l%s",slash); dot = strrchr(mark,'.'); - *dot = '\0'; + *dot = 0; } else { *aarg++ = *carg++; } |