# HG changeset patch # User mroi # Date 1105800515 0 # Node ID 39d2fc310eb9d7548a29012ea83d5388d7aea4c0 # Parent 0f055e94eb9cae79aa69dd94d61cb764cfe3c7e9 fix the printerr macro again to have \0-terminated strings diff -r 0f055e94eb9c -r 39d2fc310eb9 dvdnav_internal.h --- a/dvdnav_internal.h Sat Jan 15 14:42:50 2005 +0000 +++ b/dvdnav_internal.h Sat Jan 15 14:48:35 2005 +0000 @@ -198,6 +198,6 @@ #endif /* WIN32 */ #endif #define printerr(str) \ - do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN); } while (0) + do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0) #endif /* DVDNAV_INTERNAL_H_INCLUDED */