/[tar]/tar/src/buffer.c
ViewVC logotype

Diff of /tar/src/buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58 by gray, Sun Aug 31 22:41:32 2003 UTC revision 1.59 by gray, Fri Sep 5 13:24:15 2003 UTC
# Line 1055  short_read (ssize_t status) Line 1055  short_read (ssize_t status)
1055          break;          break;
1056    
1057        if (! read_full_records_option)        if (! read_full_records_option)
1058          FATAL_ERROR ((0, 0, _("Unaligned block (%lu bytes) in archive"),          {
1059                        (unsigned long) (record_size - left)));            unsigned long rest = record_size - left;
1060              
1061              FATAL_ERROR ((0, 0,
1062                            ngettext ("Unaligned block (%lu byte) in archive",
1063                                      "Unaligned block (%lu bytes) in archive",
1064                                      rest),
1065                            rest));
1066            }
1067    
1068        /* User warned us about this.  Fix up.  */        /* User warned us about this.  Fix up.  */
1069    
# Line 1069  short_read (ssize_t status) Line 1076  short_read (ssize_t status)
1076    
1077    if (!read_full_records_option && verbose_option    if (!read_full_records_option && verbose_option
1078        && record_start_block == 0 && status > 0)        && record_start_block == 0 && status > 0)
1079      WARN ((0, 0, _("Record size = %lu blocks"),      {
1080             (unsigned long) ((record_size - left) / BLOCKSIZE)));        unsigned long rsize = (record_size - left) / BLOCKSIZE;
1081          WARN ((0, 0,
1082                 ngettext ("Record size = %lu block",
1083                           "Record size = %lu blocks",
1084                           rsize),
1085                 rsize));
1086        }
1087    
1088    record_end = record_start + (record_size - left) / BLOCKSIZE;    record_end = record_start + (record_size - left) / BLOCKSIZE;
1089    records_read++;    records_read++;

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26