diff options
| author | John-Mark Gurney <jmg@FreeBSD.org> | 1997-03-17 01:44:43 +0000 |
|---|---|---|
| committer | John-Mark Gurney <jmg@FreeBSD.org> | 1997-03-17 01:44:43 +0000 |
| commit | 5e30934038d6ccae878a663f95e6ebd3908dbaf9 (patch) | |
| tree | 182d8d648e35d8285c0f3c0df426481d54bffb5d /gnu/usr.bin/patch/util.c | |
| parent | 55e1a055780fd7c12e67422ff0214e6f433a8e28 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/patch/util.c')
| -rw-r--r-- | gnu/usr.bin/patch/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/patch/util.c b/gnu/usr.bin/patch/util.c index 6c00880c658b..6ab6ecf21fec 100644 --- a/gnu/usr.bin/patch/util.c +++ b/gnu/usr.bin/patch/util.c @@ -169,7 +169,7 @@ Reg1 char *s; } else { t = rv; - while (*t++ = *s++); + while ((*t++ = *s++)); } return rv; } @@ -417,7 +417,7 @@ int assume_exists; #define try(f, a1, a2) (Sprintf(tmpbuf + pathlen, f, a1, a2), stat(tmpbuf, &filestat) == 0) if ( try("RCS/%s%s", filebase, RCSSUFFIX) - || try("RCS/%s" , filebase, 0) + || try("RCS/%s%s", filebase, "") || try( "%s%s", filebase, RCSSUFFIX) || try("SCCS/%s%s", SCCSPREFIX, filebase) || try( "%s%s", SCCSPREFIX, filebase)) |
