Merge branch 'master' into debian; correcting fragment ranges to be 64-bit.
authorRalph Ronnquist <rrq@rrq.au>
Thu, 3 Aug 2023 11:02:39 +0000 (21:02 +1000)
committerRalph Ronnquist <rrq@rrq.au>
Thu, 3 Aug 2023 11:02:39 +0000 (21:02 +1000)
debian/changelog
fusefile.c

index 200562019c48bc935c6cc3d38e58221955f2a449..2cee7fd01b4f735acdb91fbe8b3ba10b163f04a5 100644 (file)
@@ -1,3 +1,9 @@
+fusefile (1.1-1) unstable; urgency=medium
+
+  * Corrected fragment ranges to be 64-bit (long int)
+
+ -- Ralph Ronnquist <rrq@rrq.au>  Thu, 03 Aug 2023 21:02:13 +1000
+
 fusefile (1.0-1) unstable; urgency=medium
 
   * Version change for submission to debian
index 5f7850ba106e2dd9d60278d9bfc2ceb5208f3070..f6d7bc84859506cad1a272cdab9e7f9dfa1791ad 100644 (file)
@@ -327,21 +327,21 @@ static int setup_source(struct Source *p,char *frag) {
     p->to = filestat.st_size;
     // Process any range variation
     if ( range && *(++range) ) {
-       int a,b;
+       long int a,b;
        if ( 0 ) {
-       } else if ( RANGE( sscanf( range, "%d:%d%n", &a, &b, &c ), 2 )) {
+       } else if ( RANGE( sscanf( range, "%ld:%ld%n", &a, &b, &c ), 2 )) {
            p->from = ( a < 0 )? ( p->to + a ) : a;
            p->to = ( b < 0 )? ( p->to + b ) : b;
-       } else if ( RANGE( sscanf( range, "%d+%d%n", &a, &b, &c ), 2 )) {
+       } else if ( RANGE( sscanf( range, "%ld+%ld%n", &a, &b, &c ), 2 )) {
            p->from = ( a < 0 )? ( p->to + a ) : a;
            p->to = ( ( b < 0 )? p->to : p->from ) + b;
-       } else if ( RANGE( sscanf( range, "%d+%n", &a, &c ), 1 )) {
+       } else if ( RANGE( sscanf( range, "%ld+%n", &a, &c ), 1 )) {
            p->from = ( a < 0 )? ( p->to + a ) : a;
-       } else if ( RANGE( sscanf( range, ":%d%n", &b, &c ), 1 )) {
+       } else if ( RANGE( sscanf( range, ":%ld%n", &b, &c ), 1 )) {
            p->to = ( b < 0 )? ( p->to + b ) : b;
-       } else if ( RANGE( sscanf( range, "%d:%n", &a, &c ), 1 )) {
+       } else if ( RANGE( sscanf( range, "%ld:%n", &a, &c ), 1 )) {
            p->from = ( a < 0 )? ( p->to + a ) : a;
-       } else if ( RANGE( sscanf( range, "%d%n", &a, &c ), 1 )) {
+       } else if ( RANGE( sscanf( range, "%ld%n", &a, &c ), 1 )) {
            if ( a >= 0 ) {
                p->from = a;
            } else {