[vlc-devel] [RFC] SDI input module
    Rémi Denis-Courmont 
    remi at remlab.net
       
    Mon Apr 26 08:45:38 CEST 2010
    
    
  
On Mon, 26 Apr 2010 08:42:03 +0200, Jean-Baptiste Kempf <jb at videolan.org>
wrote:
>> > +    snprintf( psz_file, sizeof(psz_file), psz_fmt, i_link );
>> > +    psz_file[sizeof(psz_file) - 1] = '\0';
>> AFAIR, snprintf allways add a '\0' at the end of the string
> The man isn't that clear about it, but it seem to imply it, yes.
snprintf() always nul-terminates the string, unless the buffer size is 0 in
which case it does nothing (other than compute its return value).
-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis
    
    
More information about the vlc-devel
mailing list