[FFmpeg-devel] [PATCH 1/2] ffserver: Fix off by 1 error in path

Clément Bœsch u at pkh.me
Mon Oct 23 11:44:07 EEST 2017


On Mon, Oct 23, 2017 at 10:42:53AM +0200, Clément Bœsch wrote:
[...]
> how about changing the whole chunk with (untested):
> 
>     prog = av_strdup(my_program_name);
>     dirname = av_dirname(prog);
>     pathname = *dirname ? av_asprintf("%s/%s", dirname, "ffmpeg")
>                         : av_asprintf("ffmpeg")
>     av_free(filepath);
              ^^^^^^^^
              prog

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171023/92c594c8/attachment.sig>


More information about the ffmpeg-devel mailing list