+2005-09-29 Patrick Lam <plam@mit.edu>
+ * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
+
+ Fix multi-arch cache files: compute the position for the
+ block to be added using info from OrigFile, not NewFile.
+
2005-09-28 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcCacheMachineSignature):
current_arch_machine_name);
if (current_arch_start < 0)
- current_arch_start = FcCacheNextOffset (lseek(fd, 0, SEEK_END));
+ current_arch_start = FcCacheNextOffset (lseek(fd_orig, 0, SEEK_END));
if (!FcCacheCopyOld(fd, fd_orig, current_arch_start))
goto bail3;
FcCacheSkipToArch(fd_orig, current_arch_machine_name);
if (current_arch_start < 0)
- current_arch_start = FcCacheNextOffset (lseek(fd, 0, SEEK_END));
+ current_arch_start = FcCacheNextOffset (lseek(fd_orig, 0, SEEK_END));
if (fd_orig != -1 && !FcCacheCopyOld(fd, fd_orig, current_arch_start))
goto bail3;