X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cl_video.c;h=42c0496d679026ff9e5229329b32cd27bd6321cc;hb=c205fc63e780877ef0b6b3cfe747e2f9e8228c40;hp=8ea468b3475ed546b02eb6ac8a8307bd4770b776;hpb=57975fbf6b9ae66a76430e1551cf74ded4ed7d44;p=xonotic%2Fdarkplaces.git diff --git a/cl_video.c b/cl_video.c index 8ea468b3..42c0496d 100644 --- a/cl_video.c +++ b/cl_video.c @@ -72,11 +72,11 @@ static qboolean WakeVideo( clvideo_t * video ) static clvideo_t* OpenVideo( clvideo_t *video, const char *filename, const char *name, int owner ) { - strncpy( video->filename, filename, MAX_QPATH ); + strlcpy( video->filename, filename, sizeof(video->filename) ); video->ownertag = owner; if( strncmp( name, CLVIDEOPREFIX, sizeof( CLVIDEOPREFIX ) - 1 ) ) return NULL; - strncpy( video->cpif.name, name, MAX_QPATH ); + strlcpy( video->cpif.name, name, sizeof(video->cpif.name) ); if( !OpenStream( video ) ) return NULL;