From e2dcb5ab1de7ba4a640d048bd3ac9ebc02e87a9d Mon Sep 17 00:00:00 2001 From: Juuso Alasuutari Date: Thu, 19 Feb 2009 00:08:02 +0200 Subject: [PATCH] liblash: Fix idiotic bug from previous commit. --- liblash/lash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblash/lash.c b/liblash/lash.c index 25a1a18f..7f715bfc 100644 --- a/liblash/lash.c +++ b/liblash/lash.c @@ -758,7 +758,7 @@ bool lash_client_is_being_restored(lash_client_t *client) { /* Client parameter isn't used here but we may need it some day */ - char *str, *pid_str; + char *str, pid_str[21]; if ((str = getenv("LASH_CLIENT_IS_BEING_RESTORED"))) { sprintf(pid_str, "%d", getpid()); if (strcmp(str, pid_str) == 0)