method_bytecode can return bytecode for methods on ancestors. this is a
slight security problem and is inconsistent with the behavior of
list_method. patch follows.
--- Genesis-1.1.8-STABLE/src/ops/object.c Thu Nov 18 00:28:39 1999
+++ driver-src/src/ops/object.c Tue Jan 18 13:21:11 2000
@@ -987,7 +987,7 @@
if (!func_init_1(&args, SYMBOL))
return;
- method = object_find_method(cur_frame->object->objnum, args[0].u.symbol, FROB_ANY);
+ method = object_find_method_local(cur_frame->object, args[0].u.symbol, FROB_ANY);
/* keep these for later reference, if its already around */
if (!method)
|