X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ab5e82fc31ea3561317f62b5f56176d609aab28..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/utils/Install/packinst/packinst.c?ds=inline 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