aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dvd+rw-tools/transport.hxx.patch
blob: d2f4f04b348b917df6f4ba39a0a52df3e637cbad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- dvd+rw-tools-7.1/transport.hxx
+++ dvd+rw-tools-7.1/transport.hxx.changed
@@ -16,6 +16,7 @@
 #include <fcntl.h>
 #include <poll.h>
 #include <sys/time.h>
+#include <limits.h>
 
 inline long getmsecs()
 { struct timeval tv;
@@ -123,7 +124,7 @@
 extern "C" char *plusminus_locale()
 { static class __plusminus {
     private:
-	char str[4];
+	char str[MB_LEN_MAX];
     public:
 	__plusminus()	{   setlocale(LC_CTYPE,ENV_LOCALE);
 			    int l = wctomb(str,(wchar_t)(unsigned char)'');