Don't you thing the tilde expanding should be moved into
a separate function, instead of copying the code into two
As for the size of the temp path, have a look at PATH_MAX,
probably included from <sys/limits.h>.
I just noticed: This patch only handles ~/database, while
it should handle ~user/database as well to be consistent
with unix shells.
Logged In: YES
I put code into the repository for handling ~ for unix & MS-
Windows. Needs testing, esp on different versions of MS-