git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1625 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
1999-01-15 06:43:46 +00:00
parent f70a7160a1
commit db32d20a4d

View File

@@ -239,7 +239,7 @@ xaccSessionBeginFile (Session *sess, const char * filefrag)
* aliases can occur.
*/
strcpy (pathbuf, sess->lockfile);
path = strrchr (pathbuf, '.') + 1;
path = strrchr (pathbuf, '.');
sprintf (path, ".%lx.%d.LNK", gethostid(), getpid());
link (sess->lockfile, pathbuf);
rc = stat (sess->lockfile, &statbuf);