diff options
-rw-r--r-- | coreutils/dd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index bbd117b77..53c3bdc81 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -403,12 +403,9 @@ int dd_main(int argc UNUSED_PARAM, char **argv) | |||
403 | (unsigned long)prev_read_size); | 403 | (unsigned long)prev_read_size); |
404 | prev_read_size = n; | 404 | prev_read_size = n; |
405 | 405 | ||
406 | /* | 406 | /* If n is odd, last byte is not swapped: |
407 | * If n is odd, last byte is not swapped: | ||
408 | * echo -n "qwe" | dd conv=swab | 407 | * echo -n "qwe" | dd conv=swab |
409 | * prints "wqe". | 408 | * prints "wqe". |
410 | * The code does not handle correctly odd-sized reads | ||
411 | * in the *middle* of the input. FIXME. | ||
412 | */ | 409 | */ |
413 | p16 = (void*) ibuf; | 410 | p16 = (void*) ibuf; |
414 | end = (void*) (ibuf + (n & ~(ssize_t)1)); | 411 | end = (void*) (ibuf + (n & ~(ssize_t)1)); |