compuphase / minIni

A small and portable INI file library with read/write support
http://www.compuphase.com/minini.htm
Other
382 stars 114 forks source link

Code style in cache_flush() function #25

Open mir-math opened 1 year ago

mir-math commented 1 year ago

First of all thanks for the library. One minor correction: function static int cache_flush(TCHAR *buffer, int *size, INI_FILETYPE *rfp, INI_FILETYPE *wfp, INI_FILEPOS *mark); uses constant INI_BUFFERSIZE as a size of its argument buffer. This is the case while library is unmodified but it would be safer to pass size of a buffer as an argument.