diff --git a/toys/other/bzcat.c b/toys/other/bzcat.c index f00f968b25b8c27e2f6cd15ea4fd42cd728c0504..a60b709a182c35c7116eb0a4e12dc064e551c1f2 100644 --- a/toys/other/bzcat.c +++ b/toys/other/bzcat.c @@ -682,9 +682,9 @@ static void do_bunzip2(int fd, char *name) dotbz = name+len-3; if ((len>3 && !strcmp(dotbz, ".bz")) || (len>4 && !strcmp(--dotbz, ".bz2"))) #ifdef TOYBOX_OH_ADAPT - *dotbz = 0; + *dotbz = '\0'; #else - dotba = 0; + dotbz = 0; #endif // For - no replace