Commit 4d906e59 authored by sthibaul's avatar sthibaul
Browse files

Fix liveness of buf

So that domain can point to it.
parent 6df96f81
......@@ -4520,12 +4520,12 @@ static void stripdomain(char *host)
char *domain = 0;
char _domain[1024];
char buf[1024];
// strip off domain
FILE *resolv = fopen("/etc/resolv.conf", "r");
if (resolv)
char buf[1024];
char *b;
while (fgets(buf, sizeof(buf), resolv))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment