Formatting

This commit is contained in:
Michael Meyer
2020-07-22 09:25:05 -04:00
parent 5a2c94f8e3
commit 61cc0e3d51

View File

@@ -664,15 +664,18 @@ bones_include_name(name)
const char *name;
{
struct cemetery *bp;
int len;
char buf[BUFSZ];
/* prepare buffer by appending terminal hyphen to name, to avoid partial
* matches producing false positives */
Strcpy(buf, name);
Strcat(buf, "-");
int l = strlen(buf);
len = strlen(buf);
if ((bp = g.level.bonesinfo)) {
do {
if (!strncmp(bp->who, buf, l))
if (!strncmp(bp->who, buf, len))
return TRUE;
} while ((bp = bp->next) != (struct cemetery *) 0);
}