fixed some memory corruption

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@362 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-11-15 13:40:20 +00:00
parent bad4d94312
commit 6342c34f8d
2 changed files with 26 additions and 23 deletions

View File

@@ -92,7 +92,7 @@ void daemonize(void) {
ERROR("setsid: %s\n", strerror(errno));
goto err;
}
/* Change the current working directory. This prevents the current
* directory from being locked; hence not being able to remove it. */
if (chdir("/") < 0) {