diff options
author | phintuka <phintuka> | 2007-03-14 17:39:38 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-03-14 17:39:38 +0000 |
commit | 3606c7efbd0c1e25825c9c5e245fd1da806634eb (patch) | |
tree | bd06cff968eacf045d94bf88be5fd70b1d60771b /config.c | |
parent | e4de0d04ef972e02ed75430ff18bc7980ae284e3 (diff) | |
download | xineliboutput-3606c7efbd0c1e25825c9c5e245fd1da806634eb.tar.gz xineliboutput-3606c7efbd0c1e25825c9c5e245fd1da806634eb.tar.bz2 |
Allow strn0cpy to fill all bytes
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.27 2007-03-14 17:08:07 phintuka Exp $ + * $Id: config.c,v 1.28 2007-03-14 17:39:38 phintuka Exp $ * */ @@ -21,8 +21,8 @@ #define STRN0CPY(dst, src) \ do { \ - strn0cpy(dst, src, sizeof(dst)-1); \ - if(strlen(src) > sizeof(dst)-1) \ + strn0cpy(dst, src, sizeof(dst)); \ + if(strlen(src) >= sizeof(dst)) \ LOGMSG("WARNING: Setting %s truncated to %s !", Name, dst); \ } while(0) |