- Timestamp:
- Jan 12, 2017, 11:48:04 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-stream.c
r3621 r3646 1761 1761 /*@ end vars *************************************************** */ 1762 1762 1763 if (length_of_incoming_file <= 0) {1764 return(1);1765 }1766 1767 1763 olen = length_of_incoming_file; 1768 1764 p = strrchr(filename, '/'); /* Make 'em go, "Unnnh!" Oh wait, that was _Master_ P... */ … … 1781 1777 sprintf(tempblock + 6000 + control_char, STR_HEADER); 1782 1778 tempblock[7000] = control_char; 1783 memcpy(tempblock + 7001, (char *) &olen, sizeof(off_t)); 1779 if (length_of_incoming_file > 0) { 1780 memcpy(tempblock + 7001, (char *) &olen, sizeof(off_t)); 1781 } 1784 1782 strcpy(tempblock + 1000, filename); 1785 1783 g_tape_posK += fwrite(tempblock, 1, (size_t) TAPE_BLOCK_SIZE, g_tape_stream) / 1024;
Note:
See TracChangeset
for help on using the changeset viewer.