X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=execute.c;h=07fd30f4e26f2d282032e4702e42cdecb8ee910a;hb=da0ee5e7efab316635f59d212028844f848fa6ce;hp=0719e2da23ce1c1b18d4f43a2dc62b5b6abfdb2d;hpb=540a35220007443b3a63998e6c0b6a205195444f;p=fips diff --git a/execute.c b/execute.c index 0719e2d..07fd30f 100644 --- a/execute.c +++ b/execute.c @@ -36,6 +36,7 @@ #include #include "execute.h" +#include "xmalloc.h" /* Terminate a string representing a filename at the final '/' to * eliminate the final filename component, (leaving only the directory @@ -279,6 +280,9 @@ find_libfips_path (void *ctx, const char *program) "\t%s\n" "and\n" "\t%s/" BINDIR_TO_LIBFIPSDIR "\n", bin_path, bin_path); + + fprintf(stderr, "\nIt's possible fips was not compiled with support for %d-bit applications.\n", bits); + fprintf(stderr, "Perhaps you need to install gcc-multilib and re-compile fips?\n"); exit (1); } @@ -291,11 +295,7 @@ execute_with_fips_preload (int argc, char * const argv[]) char **execvp_args; int i; - execvp_args = malloc((argc + 1) * sizeof(char *)); - if (execvp_args == NULL) { - fprintf (stderr, "Out of memory,\n"); - return 1; - } + execvp_args = xmalloc((argc + 1) * sizeof(char *)); for (i = 0; i < argc; i++) { execvp_args[i] = argv[i];