summaryrefslogtreecommitdiff
path: root/src/helper/slbt_dump_machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/slbt_dump_machine.c')
-rw-r--r--src/helper/slbt_dump_machine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c
index 3d3a454..dfd32a4 100644
--- a/src/helper/slbt_dump_machine.c
+++ b/src/helper/slbt_dump_machine.c
@@ -15,6 +15,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_spawn_impl.h"
+#include "slibtool_snprintf_impl.h"
static void slbt_dump_machine_child(
char * program,
@@ -61,8 +62,8 @@ int slbt_dump_machine(
return -1;
}
- if ((size_t)snprintf(program,sizeof(program),"%s",
- compiler) >= sizeof(program))
+ if (slbt_snprintf(program,sizeof(program),
+ "%s",compiler) < 0)
return -1;
/* fork */