]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: correct string comparison to revive 6cov on darwin
authorDave Cheney <dave@cheney.net>
Mon, 14 Mar 2011 21:12:37 +0000 (14:12 -0700)
committerRob Pike <r@golang.org>
Mon, 14 Mar 2011 21:12:37 +0000 (14:12 -0700)
R=golang-dev, r, dsymonds, rsc1
CC=golang-dev
https://golang.org/cl/4277046

src/libmach/darwin.c

index 7ee6f7acecec0add197cb7214340745bb65ef6e5..d44fd5612c44d691f4747b213f3118485ec8b126 100644 (file)
@@ -579,7 +579,7 @@ machregrw(Map *map, Seg *seg, uvlong addr, void *v, uint n, int isr)
                if(!isr)
                        thread_resume(thread);
                rerrstr(buf, sizeof buf);
-               if(strcmp(buf, "send invalid dest") == 0)
+               if(strstr(buf, "send invalid dest") != nil) 
                        werrstr("process exited");
                else
                        werrstr("thread_get_state: %r");