dd

C89 implementation of dd
git clone git://ssnf.xyz/dd
Log | Files | Refs

commit 870bdacda37bad43d0261c880ad4ad0ae17f80fd
parent e2faeb8b021f6aa74e5b610c8cf01f1593de6fdf
Author: ssnf <ssnf@ssnf.xyz>
Date:   Sat, 17 Jul 2021 08:37:56 +0000

minor syntax change

Diffstat:
Mdd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dd.c b/dd.c @@ -38,7 +38,7 @@ main(int argc, char* argv[]) sscanf(argv[n] + 6, "%d", &count); else if (!strncmp(argv[n], "bs=", 3)) { sscanf(argv[n] + 3, "%d", &bs); - switch (*(argv[n] + strlen(argv[n]) - 1)) { + switch (argv[n][strlen(argv[n])-1]) { case 'k': bs <<= 10; break;