shapetools (1.4pl6-11) src/atfs/afdelta.c

Summary

 src/atfs/afdelta.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

--- shapetools-1.4pl6.orig/src/atfs/afdelta.c
+++ shapetools-1.4pl6/src/atfs/afdelta.c
@@ -176,7 +176,7 @@
   register FILE   *tmpfile;
 
   /* this error should never occur */
-  if (VATTR(deltakey).af_repr == AF_FILE)
+  if (VATTR(deltakey).af_repr == AF_FILE_AF)
     FATAL ("undodelta", "wrong kind of representation", AF_EINTERNAL, ERROR);
 
   if ((deltachain = (Af_key *) malloc ((unsigned) (AF_SEGLEN * sizeof (Af_key)))) == NULL)