diff options
Diffstat (limited to 'src/logic/slbt_exec_execute.c')
-rw-r--r-- | src/logic/slbt_exec_execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c index 971ff3c..7b7ec97 100644 --- a/src/logic/slbt_exec_execute.c +++ b/src/logic/slbt_exec_execute.c @@ -13,6 +13,7 @@ #include <slibtool/slibtool.h> #include "slibtool_spawn_impl.h" #include "slibtool_driver_impl.h" +#include "slibtool_snprintf_impl.h" #include "slibtool_errinfo_impl.h" int slbt_exec_execute( @@ -60,10 +61,9 @@ int slbt_exec_execute( sprintf(mark,".libs/%s",base); /* wrapper */ - if ((size_t)snprintf(wrapper,sizeof(wrapper), + if (slbt_snprintf(wrapper,sizeof(wrapper), "%s.exe.wrapper", - exeref) - >= sizeof(wrapper)) { + exeref) < 0) { slbt_free_exec_ctx(actx); return SLBT_BUFFER_ERROR(dctx); } |