[FFmpeg-devel] [PATCH] cmdutils: replace strncpy() with direct assignment

Gregor Riepl onitake at gmail.com
Tue Mar 9 19:54:11 EET 2021


>      // Change all the ' --' strings to '~--' so that
>      // they can be identified as tokens.
>      while ((conflist = strstr(str, " --")) != NULL) {
> -        strncpy(conflist, "~--", 3);
> +        conflist[0] = '~';
>      }

Doesn't this simply replace -- with ~- ?
The comment seems wrong to me...


More information about the ffmpeg-devel mailing list