aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-04-05 23:36:37 -0700
committerRuss Cox <rsc@golang.org>2010-04-05 23:36:37 -0700
commit6d69fd1fe378077aa99505af9cd0a64553d5df57 (patch)
treedab7d34f6c00033b748b27c53907dab351d2f109 /src/pkg/runtime/runtime.c
parenta267ff6a815ce9f8f92f9bcb41cc53f6ebae122a (diff)
downloadgo-6d69fd1fe378077aa99505af9cd0a64553d5df57.tar.xz
runtime: fix Caller
log: add test of Caller New regexp in log test is picky and will require some maintenance, but it catches off-by-one mistakes too. Fixes #710. R=gri CC=esko.luontola, golang-dev https://golang.org/cl/887043
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 9a027d430e..c2eee60ca4 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -479,7 +479,7 @@ void
{
Func *f;
- if(callers(skip, &retpc, 1) == 0 || (f = findfunc(retpc-1)) == nil) {
+ if(callers(1+skip, &retpc, 1) == 0 || (f = findfunc(retpc-1)) == nil) {
retfile = emptystring;
retline = 0;
retbool = false;