From 13e02278a1016d0c8d9676d22273203261af84c1 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Mon, 16 Jun 2014 13:45:39 +0000 Subject: [PATCH] Use portable version of strerror_r() FS-6596 --resolve --- src/switch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch.c b/src/switch.c index 4523bd0589..633524eb56 100644 --- a/src/switch.c +++ b/src/switch.c @@ -402,13 +402,13 @@ static void reincarnate_protect(char **argv) { if (execv(argv[0], argv) == -1) { char buf[256]; fprintf(stderr, "Reincarnate execv() failed: %d %s\n", errno, - strerror_r(errno, buf, sizeof(buf))); + switch_strerror_r(errno, buf, sizeof(buf))); } fprintf(stderr, "Trying reincarnate-reexec plan B...\n"); if (execvp(argv[0], argv) == -1) { char buf[256]; fprintf(stderr, "Reincarnate execvp() failed: %d %s\n", errno, - strerror_r(errno, buf, sizeof(buf))); + switch_strerror_r(errno, buf, sizeof(buf))); } fprintf(stderr, "Falling back to normal reincarnate behavior...\n"); goto refork;