All pastes #202906 Raw Edit

Stuff

public text v1 · immutable
#202906 ·published 2006-10-14 20:29 UTC
rendered paste body
block of code in /src/tiff/tif_dir.c:

            else if( fip->field_type == TIFF_ASCII )
            {
                const char *value = (const char *) va_arg(ap,const char *);
                tv->count = strlen(value)+1;
                tv->value = _TIFFmalloc(tv->count);
                if ( !tv->value ) {
                        va_end(ap);
                        return 0;
                }

                strcpy( tv->value, value );
            }

make error:
/home/mick/wxGTK-2.6.3/build_gtk# make
./bk-deps gcc -c -o wxtiff_tif_dir.o  -I../src/jpeg -fPIC -DPIC -DWX_PRECOMP -DN   O_GCC_PRAGMA -D__WXDEBUG__ -Ilib/wx/include/gtk2-ansi-debug-2.6 -I../include -pt   hread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -   I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/   glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -O0 -pthread -Wall -Wu   ndef ../src/tiff/tif_dir.c
../src/tiff/tif_dir.c: In function ‘int _TIFFVSetField(TIFF*, ttag_t, char*)’:
../src/tiff/tif_dir.c:581: error: invalid conversion from ‘void*’ to ‘char*’
../src/tiff/tif_dir.c:581: error:   initializing argument 1 of ‘char* strcpy(cha   r*, const char*)’
make: *** [wxtiff_tif_dir.o] Error 1