diff --git a/cbake.l b/cbake.l index 6796588..7f09126 100644 --- a/cbake.l +++ b/cbake.l @@ -67,7 +67,7 @@ MACROS (@BAKE|@FILENAME|@FILE|@SHORT|@ARGS|@LINE|@STOP|$@|$*|$+) void root(char * filename) { char * path, * terminator; if (!(path = realpath(filename, NULL))) { return; } - if (terminator = strrchr(path, '/')) { + if ((terminator = strrchr(path, '/'))) { *terminator = '\0'; chroot(path); } diff --git a/test.a.txt b/test.a.txt new file mode 100644 index 0000000..ca2ff7f Binary files /dev/null and b/test.a.txt differ