fix strncmp/memcmp used with a wrong number
This commit is contained in:
parent
be36fab405
commit
a25758dce7
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue