fixed missing comma

This commit is contained in:
Anselme 2016-04-27 17:26:17 +02:00
parent 9370747f40
commit 8aebc87199

View File

@ -34,10 +34,10 @@ bool addFile(const string &inFile, FILE *out)
nbRead = fread(ptr, sizeof(char), NB_VAL_PER_LINE, in);
for(unsigned int i=0; i<nbRead; ++i)
fprintf(out, i ? ",0x%x" : "\t0x%x", ptr[i]);
fprintf(out, "\n");
fprintf(out, ",\n");
}
while(nbRead == NB_VAL_PER_LINE);
fprintf(out, ", 0x00}; // additionnal byte used to null-terminate ascii data\n");
fprintf(out, "\t0x00}; // additionnal byte used to null-terminate ascii data\n");
++n;
fclose(in);
return true;