X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ab5e82fc31ea3561317f62b5f56176d609aab28..f2828b3910f61459110584704eed70cc3aa2501b:/utils/Install/packinst/packinst.c diff --git a/utils/Install/packinst/packinst.c b/utils/Install/packinst/packinst.c index cad4a82fa6..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]; - - 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); + 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); } void getline(FILE *f, char *entry, char *entrydata) { -char in[4096]; -int z; - - memset(in, 0, 4096); - fgets(in, 4095, f); - - if(in[strlen(in)-1] == '\n') - in[strlen(in)-1] = 0; - - if(in[0] != '#') - { - for(z=0;z