8l: fix absolute path detection on Windows

Fixes #755.

R=ken2
CC=golang-dev
https://golang.org/cl/965047
This commit is contained in:
Russ Cox 2010-04-30 12:48:03 -07:00
parent b94ae26073
commit 74a23646bc

View File

@ -103,6 +103,10 @@ addlib(char *src, char *obj)
sprint(name, "");
i = 1;
} else
if(isalpha(histfrog[0]->name[1]) && histfrog[0]->name[2] == ':') {
strcpy(name, histfrog[0]->name+1);
i = 1;
} else
if(histfrog[0]->name[1] == '.') {
sprint(name, ".");
i = 0;