fix strncmp/memcmp used with a wrong number

This commit is contained in:
ftrvxmtrx 2015-06-11 22:13:55 +02:00
parent be36fab405
commit a25758dce7
4 changed files with 4 additions and 4 deletions

View file

@ -282,7 +282,7 @@ dollar(Exec *e, char *s, int *namelen)
return filename(e, e->file);
if(memcmp(s, "type", 4) == 0)
return nonnil(e->msg->type);
if(memcmp(s, "wdir", 3) == 0)
if(memcmp(s, "wdir", 4) == 0)
return nonnil(e->msg->wdir);
}
}