Corrected the "-dump" report of fragment start position.
[rrq/fusefile.git] / fusefile.c
index f36bcfba6a49bbde7edd75464ff1570539734235..a1bf2bd926792844ecee3c989dd131da641d69e2 100644 (file)
@@ -988,8 +988,8 @@ static int dump_fragments(int push) {
            if ( !push ) {
                fprintf( stdout, "%s/%ld:%ld\n",
                         sources.array[ src ].filename,
-                        sources.array[ src ].from,
-                        //pos - sources.array[ src ].start,
+                        sources.array[ src ].from +
+                        pos - sources.array[ src ].start,
                         x - sources.array[ src ].start +
                         sources.array[ src ].from
                         );