X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ebe0155da54d6c8381950385e4e99613ac96c37b..f9a3f576cccfd2c2296a24d74b05b9543c47fac7:/utils/Install/packinst/packinst.c?ds=sidebyside 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]; - - 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