liblash: Fix idiotic bug from previous commit.

This commit is contained in:
Juuso Alasuutari 2009-02-19 00:08:02 +02:00
parent c9260db74a
commit e2dcb5ab1d
1 changed files with 1 additions and 1 deletions

View File

@ -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)