[vlc-devel] commit: Sanitize output from str_format() before using it to build the snapshot's filename. (Antoine Cellerier )

Antoine Cellerier dionoea at videolan.org
Wed Feb 10 11:02:27 CET 2010


On Tue, Feb 09, 2010, Rémi Denis-Courmont wrote:
> Le mardi 9 février 2010 17:20:22 git version control, vous avez écrit :
> > vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Feb 
> >  9 16:19:57 2010 +0100| [fc22ddf378014a5182d1b0ad40f21b2277350cc7] |
> >  committer: Antoine Cellerier
> > 
> > Sanitize output from str_format() before using it to build the snapshot's
> >  filename.
> 
> video_output/snapshot.c: In function 'vout_snapshot_SaveImage':                       
> video_output/snapshot.c:154: warning: ignoring return value of 
> 'filename_sanitize', declared with attribute warn_unused_result                                              

Arg, I should have tested before commiting. Anyone know while
filename_sanitize() duplicates the string while path_sanitize() works on
the original string?

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list