diff --git a/utils/Install/packinst/packinst.c b/utils/Install/packinst/packinst.c index 27dcc9edf1..f6685477aa 100644 --- a/utils/Install/packinst/packinst.c +++ b/utils/Install/packinst/packinst.c @@ -43,148 +43,148 @@ int include_unpack(char *aname); void append_file(char *filename) { - FILE *appendfile; - int amnt; - char buffer[512]; + FILE *appendfile; + int amnt; + char buffer[512]; - if((appendfile = fopen(filename, "rb"))==NULL) - { - printf("Error opening %s for reading!\n", filename); - exit(3); - } - while(!feof(appendfile)) - { - amnt = fread(buffer, 1, 512, appendfile); - fwrite(buffer, 1, amnt, installfile); - } - fclose(appendfile); + if((appendfile = fopen(filename, "rb"))==NULL) + { + printf("Error opening %s for reading!\n", filename); + exit(3); + } + while(!feof(appendfile)) + { + amnt = fread(buffer, 1, 512, appendfile); + fwrite(buffer, 1, amnt, installfile); + } + fclose(appendfile); } void getline(FILE *f, char *entry, char *entrydata) { -char in[4096]; -int z; + char in[4096]; + int z; - memset(in, 0, 4096); - fgets(in, 4095, f); + memset(in, 0, 4096); + fgets(in, 4095, f); - if(in[strlen(in)-1] == '\n') - in[strlen(in)-1] = 0; + if(in[strlen(in)-1] == '\n') + in[strlen(in)-1] = 0; - if(in[0] != '#') - { - for(z=0;z