From e666495d5bec1a6aebe384303efe5f31db6aed2b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 19 Dec 1996 22:22:18 +0000 Subject: setgid games, not setuid games. closes a neat set of holes --- games/adventure/vocab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'games/adventure/vocab.c') diff --git a/games/adventure/vocab.c b/games/adventure/vocab.c index dbd451cdaaf..84478182c2a 100644 --- a/games/adventure/vocab.c +++ b/games/adventure/vocab.c @@ -96,11 +96,11 @@ int object,where; holdng++; } if (atloc[where]==object) - { atloc[where]=link[object]; + { atloc[where]=linkx[object]; return; } - for (temp=atloc[where]; link[temp]!=object; temp=link[temp]); - link[temp]=link[object]; + for (temp=atloc[where]; linkx[temp]!=object; temp=linkx[temp]); + linkx[temp]=linkx[object]; } @@ -112,7 +112,7 @@ int object,where; place[object]=where; } if (where<=0) return; - link[object]=atloc[where]; + linkx[object]=atloc[where]; atloc[where]=object; } -- cgit v1.2.3