Commit 9803a14d authored by Andrew Price's avatar Andrew Price
Browse files

Increment userposn in the right place in user_find_name

parent 7c242221
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,11 +67,11 @@ static int user_find_name(const char *name, struct person *user, int32_t *userpo
			close(fd);
			return 1;
		}
		*userposn += sizeof(*user);
		if (!strcasecmp(user->name, name) && !u_del(user->status)) {
			*found = 1;
			break;
		}
		*userposn += sizeof(*user);
	}
	close(fd);
	return 0;