Florian Schulze
-
2000-11-22
- assigned_to: nobody --> proff_fs
Compiler: gcc 2.95.2
Host: UltraSPARC (solaris 2.6 and 2.7)
--> bus error
r_data.c, line 516
memcpy causes bus error on ultra sparcs (solaris 2.7 and 2.6)
Where is GCC defined? Well, if the memcpy is replaced
by the for-loop everything is fine for our sparc machines
(indeed there is no seg fault or core dump :-)
#ifndef GCC
memcpy(texture->name, mtexture->name, sizeof(texture->name));
#else
{
int j;
for(j=0;j<sizeof(texture->name);j++)
texture->name[j]=mtexture->name[j];
}
#endif
Oli