Jan Willamowius
2019-04-22 51213b102296c1e48f25aa9472a8be74a31cb6b7
src/library/base/logger.c
@@ -30,18 +30,18 @@
   if (folder == 0) {
      folder = "/tmp";
   }
   strcpy(logpath, folder);
   strcat(logpath, "/open-license.log");
   strncpy(logpath, folder, MAX_PATH);
   strncat(logpath, "/open-license.log", MAX_PATH - strlen(logpath));
#else
   int plen=GetTempPath(MAX_PATH,logpath);
   int plen = GetTempPath(MAX_PATH, logpath);
   if(plen == 0) {
      fprintf(stderr, "Error getting temporary directory path");
   }
   strcat(logpath,"open-license.log");
   strncat(logpath, "open-license.log", MAX_PATH - strlen(logpath));
#endif
}
void _log(char* format, ...) {
void _log(const char* format, ...) {
   char logpath[MAX_PATH];
   va_list args;
   char * buffer;