On May 19, 2003 06:06 pm, Lozano, Carlos A. wrote:
- Avoid print a no init buffer.
What about this instead:
Index: dlls/x11drv/xvidmode.c =================================================================== RCS file: /var/cvs/wine/dlls/x11drv/xvidmode.c,v retrieving revision 1.18 diff -u -r1.18 xvidmode.c --- dlls/x11drv/xvidmode.c 22 Apr 2003 00:15:48 -0000 1.18 +++ dlls/x11drv/xvidmode.c 20 May 2003 12:21:47 -0000 @@ -461,7 +461,7 @@ static const char * _CDS_flags(DWORD fields) { BOOL first = TRUE; - char buf[128]; + char buf[128] = ""; char *p = buf; _X_FIELD(CDS,UPDATEREGISTRY);_X_FIELD(CDS,TEST);_X_FIELD(CDS,FULLSCREEN); _X_FIELD(CDS,GLOBAL);_X_FIELD(CDS,SET_PRIMARY);_X_FIELD(CDS,RESET); @@ -471,7 +471,7 @@ static const char * _DM_fields(DWORD fields) { BOOL first = TRUE; - char buf[128]; + char buf[128] = ""; char *p = buf; _X_FIELD(DM,BITSPERPEL);_X_FIELD(DM,PELSWIDTH);_X_FIELD(DM,PELSHEIGHT); _X_FIELD(DM,DISPLAYFLAGS);_X_FIELD(DM,DISPLAYFREQUENCY);_X_FIELD(DM,POSITION);