diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-01 16:01:45 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-01 16:01:45 +0800 |
commit | 2d14720ed4ca63e091e25073d3a147479abfe7f3 (patch) | |
tree | 2968dfeb3d7eb0c0c53fbdfbbda077d149a628f6 | |
parent | 0ca2a0449120c66ac26bb8331624b62c03ea6984 (diff) | |
download | pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar.gz pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar.bz2 pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar.lz pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar.xz pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.tar.zst pttbbs-2d14720ed4ca63e091e25073d3a147479abfe7f3.zip |
fix stupid bug in utmpfix...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2385 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/shmctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/shmctl.c b/util/shmctl.c index d329c748..f059597b 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -42,7 +42,7 @@ int logout_friend_online(userinfo_t *utmp) void purge_utmp(userinfo_t *uentp) { logout_friend_online(uentp); - //memset(uentp, 0, sizeof(int)); + //memset(uentp, 0, sizeof(userinfo_t)); } typedef struct { @@ -203,7 +203,7 @@ int utmpfix(int argc, char **argv) if( clean ){ printf("clean %06d(%s), userid: %s\n", i, clean, SHM->uinfo[which].userid); - memset(&SHM->uinfo[which], 0, sizeof(int)); + memset(&SHM->uinfo[which], 0, sizeof(userinfo_t)); --nownum; changeflag = 1; } |