summaryrefslogtreecommitdiffstats
path: root/util/uhash_loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/uhash_loader.c')
-rw-r--r--util/uhash_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/uhash_loader.c b/util/uhash_loader.c
index 771882a0..6b1c68d0 100644
--- a/util/uhash_loader.c
+++ b/util/uhash_loader.c
@@ -121,7 +121,7 @@ int loadmoney(userec_t *user)
{
int fd, money=0;
char path[256];
- sprintf(path,"home/%c/%s", user->userid[0], user->userid);
+ sprintf(path,BBSHOME "/home/%c/%s/.passwd", user->userid[0], user->userid);
if((fd=open(path, O_RDONLY))<0)
return user->money;
if(lseek(fd, (off_t)((int)&(user->money) - (int)user), SEEK_SET) >= 0)