char *limit = temp + namedata->parsed_size;
for (; temp < limit; ++temp)
{
- if (*temp == ARFMAG[0])
+ if (*temp == ARFMAG[1])
temp[temp > ext_names && temp[-1] == '/' ? -1 : 0] = '\0';
if (*temp == '\\')
*temp = '/';
{
strcpy (strptr, normal);
if (! trailing_slash)
- strptr[thislen] = ARFMAG[0];
+ strptr[thislen] = ARFMAG[1];
else
{
strptr[thislen] = '/';
- strptr[thislen + 1] = ARFMAG[0];
+ strptr[thislen + 1] = ARFMAG[1];
}
stroff = strptr - *tabloc;
last_stroff = stroff;
return FALSE;
if ((elength % 2) == 1)
{
- if (bfd_bwrite (ARFMAG, 1, arch) != 1)
+ if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1)
return FALSE;
}
}
if ((arelt_size (current) % 2) == 1)
{
- if (bfd_bwrite (ARFMAG, 1, arch) != 1)
+ if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1)
return FALSE;
}
}