Changeset 1502 for trunk/dll/copyf.c


Ignore:
Timestamp:
Mar 31, 2010, 4:54:58 PM (15 years ago)
Author:
John Small
Message:

Ticket 423: Correct MkeTempName to it creates 8.3 format names, not 8.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r1480 r1502  
    2626  22 Jul 09 GKY Delete .LONGNAME EA if it becomes the filename on a copy or move.
    2727  19 Oct 09 SHL Correct copyf regression when moving to save volume
     28  31 Mar 10 JBS Correct copyf which was creating 8.4, not 8.3, temporary names
    2829
    2930***********************************************************************/
     
    9697  switch (type) {
    9798  case 0:
    98     sprintf(p, "%08lx.%03lx", rand() & 4095L, mypid);
     99    sprintf(p, "%08lx.%03lx", mypid, rand() & 4095L);           // 4095 = 0x0FFF
    99100    break;
    100101  case 1:
    101     sprintf(p, "%s%04lx.%03lx", "$FM2", rand() & 4095L, mypid);
     102    sprintf(p, "%s%04lx.%03lx", "$FM2", mypid, rand() & 4095L); // 4095 = 0x0FFF
    102103    break;
    103104  case 2:
    104     sprintf(p, "%s.%03x", temproot, (rand() & 4095));
     105    sprintf(p, "%s.%03x", temproot, (rand() & 4095));           // 4095 = 0x0FFF
    105106    break;
    106107  default:
Note: See TracChangeset for help on using the changeset viewer.