diff options
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 88bfcaf7..6d25761b 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -62,7 +62,7 @@ passwd_update_money(int num) if ((pwdfd = open(fn_passwd, O_WRONLY)) < 0) exit(1); lseek(pwdfd, sizeof(userec_t) * (num - 1) + - ((int)&u.money - (int)&u), SEEK_SET); + ((char *)&u.money - (char *)&u), SEEK_SET); write(pwdfd, &money, sizeof(int)); close(pwdfd); return 0; |