From 1957f911213f277fb4ed9b70031ffaff8545514f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 31 Jan 2015 18:54:52 +0000 Subject: [PATCH] [CDMAKE]: Fix Philip's firstname; clarify code. svn path=/trunk/; revision=66128 --- reactos/tools/cdmake/cdmake.c | 10 +++++++--- reactos/tools/cdmake/llmsort.c | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/reactos/tools/cdmake/cdmake.c b/reactos/tools/cdmake/cdmake.c index 6b23e1e1feb..cc529d6ba0b 100644 --- a/reactos/tools/cdmake/cdmake.c +++ b/reactos/tools/cdmake/cdmake.c @@ -34,7 +34,7 @@ * magnus@greatlord.com */ -/* According to his website, this file was released into the public domain by Phillip J. Erdelsky */ +/* According to his website, this file was released into the public domain by Philip J. Erdelsky */ #include #include @@ -1838,10 +1838,14 @@ int main(int argc, char **argv) { char *trimmedline, *targetname, *srcname, *eq; char lineread[1024]; - FILE *f = fopen(source+1, "r"); + FILE *f; + + source++; + + f = fopen(source, "r"); if (!f) { - error_exit("Can't open cd description %s\n", source+1); + error_exit("Can't open cd description %s\n", source); } while (fgets(lineread, sizeof(lineread), f)) { diff --git a/reactos/tools/cdmake/llmsort.c b/reactos/tools/cdmake/llmsort.c index 467c1790f94..e20893c988e 100644 --- a/reactos/tools/cdmake/llmsort.c +++ b/reactos/tools/cdmake/llmsort.c @@ -5,8 +5,7 @@ * http://alumnus.caltech.edu/~pje/ */ -/* According to his website, this file was released into the public domain by Phillip J. Erdelsky */ - +/* According to his website, this file was released into the public domain by Philip J. Erdelsky */ #include