Mercurial > mplayer.hg
diff stream/stream_dvb.c @ 23703:9fb716ab06a3
Avoid code duplication and ugly config.h hack by using av_strlcat/av_strlcpy
instead of plain strlcat/strlcpy
author | reimar |
---|---|
date | Thu, 05 Jul 2007 22:01:07 +0000 |
parents | cb1277fb9d7e |
children | 76f5d8892c04 |
line wrap: on
line diff
--- a/stream/stream_dvb.c Thu Jul 05 10:18:58 2007 +0000 +++ b/stream/stream_dvb.c Thu Jul 05 22:01:07 2007 +0000 @@ -44,6 +44,7 @@ #include "help_mp.h" #include "m_option.h" #include "m_struct.h" +#include "libavutil/avstring.h" #include "dvbin.h" @@ -176,7 +177,7 @@ ptr->name = malloc(k+1); if(! ptr->name) continue; - strlcpy(ptr->name, line, k+1); + av_strlcpy(ptr->name, line, k+1); } else continue;