view dvdread/dvdread_internal.h @ 282:918fe20358cb src

replaced sequency of strncpy() and strncat() by 1 snprintf() and fixed off-by-1 possible buffer oveflow; patch by Diego Petteno'
author nicodvb
date Wed, 18 Apr 2007 22:36:58 +0000
parents 9b1b740e3fc9
children
line wrap: on
line source

#ifndef DVDREAD_INTERNAL_H
#define DVDREAD_INTERNAL_H

#ifdef _MSC_VER
#include <unistd.h>
#endif /* _MSC_VER */

#define CHECK_VALUE(arg) \
 if(!(arg)) { \
   fprintf(stderr, "\n*** libdvdread: CHECK_VALUE failed in %s:%i ***" \
                   "\n*** for %s ***\n\n", \
                   __FILE__, __LINE__, # arg ); \
 }

#endif /* DVDREAD_INTERNAL_H */