diff options
author | Matthias Hopf <mat@mshopf.de> | 2006-07-13 09:49:32 +0000 |
---|---|---|
committer | Matthias Hopf <mat@mshopf.de> | 2006-07-13 09:49:32 +0000 |
commit | 73e04ac3396f24a63bfea52bd46fab6b75cc2a75 (patch) | |
tree | 26491f63af9b0fd9ab4c7c88c0002d48e23edc48 | |
parent | ca271e720804f8f1b9b6d549af3ab25758b414ee (diff) | |
download | xine-lib-73e04ac3396f24a63bfea52bd46fab6b75cc2a75.tar.gz xine-lib-73e04ac3396f24a63bfea52bd46fab6b75cc2a75.tar.bz2 |
Fix strncpy arguments in debug code.
CVS patchset: 8126
CVS date: 2006/07/13 09:49:32
-rw-r--r-- | src/xine-utils/xine_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-utils/xine_mutex.c b/src/xine-utils/xine_mutex.c index d32483363..55da3c6b9 100644 --- a/src/xine-utils/xine_mutex.c +++ b/src/xine-utils/xine_mutex.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_mutex.c,v 1.3 2006/06/23 18:24:22 dsalt Exp $ + * $Id: xine_mutex.c,v 1.4 2006/07/13 09:49:32 mshopf Exp $ * */ @@ -35,7 +35,7 @@ int xine_mutex_init (xine_mutex_t *mutex, const pthread_mutexattr_t *mutexattr, const char *id) { #ifdef DBG_MUTEX - strncpy (mutex->id, sizeof (mutex->id), id); + strncpy (mutex->id, id, sizeof (mutex->id)); mutex->id[sizeof (mutex->id) - 1] = 0; #endif |