       zm->current_file_size = pos;
 
     if(zm->max_file_size!=0 && pos >= zm->max_file_size) {
-      lprintf(zm,LOG_WARNING,"Specified maximum file size (%"PRId64" bytes) reached at offset %"PRId64
+      lprintf(zm,LOG_WARNING,"Specified maximum file size (%lld"" bytes) reached at offset %lld"
         ,zm->max_file_size, pos);
       zmodem_send_pos_header(zm, ZFERR, (uint32_t)pos, /* Hex? */ TRUE);
       break;


  p += strlen((char*)p) + 1;

  sprintf((char*)p,"%"PRId64" %"PRIoMAX" 0 0 %u %"PRId64" 0"
    ,zm->current_file_size  /* use for estimating only, could be zero! */
    ,0
    ,zm->files_remaining

  zm->files_remaining = 0;
  zm->bytes_remaining = 0;

  i=sscanf((char*)zm->rx_data_subpacket+strlen((char*)zm->rx_data_subpacket)+1,"%lld %lo %o %lo %u %lld"
    ,&zm->current_file_size /* file size (decimal) */
    ,&tmptime       /* file time (octal unix format) */
    ,&mode          /* file mode */
