pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:227:       Layer active_layer;    Channel active_channel;    Channel selection;          static string read_point_bz1( string data, Path path )    {    object p = PathPoint( );    int x, y; -  sscanf(data, "%4c%4c%4c%s", p->type, x, y); +  sscanf(data, "%4c%4c%4c%s", p->type, x, y, data);    SIGNED(x);    SIGNED(y);    p->x = (float)x;    p->y = (float)y;    return data;    }       static string read_point_bz2( string data, Path path )    {    object p = PathPoint( ); -  sscanf(data, "%4c%4F%4F%s", p->type, p->x, p->y); +  sscanf(data, "%4c%4F%4F%s", p->type, p->x, p->y, data);    return data;    }       static string decode_one_path( string data, Path path )    {    int nlen, version, num_points;    sscanf(data, "%4c", nlen );    path->name = data[..nlen-2];    data = data[nlen..];    sscanf(data, "%4c%4c%4c%4c%4c",
pike.git/lib/modules/_Image_XCF.pmod:262:    case 1:    while(num_points--)    data = read_point_bz1( data, path );    break;    case 2:    sscanf(data, "%4c%s", path->ptype, data );    while(num_points--)    data = read_point_bz2( data, path );    break;    case 3: -  sscanf(data, "%4%4cc%s", path->ptype, path->tattoo, data ); +  sscanf(data, "%4c%4c%s", path->ptype, path->tattoo, data );    while(num_points--)    data = read_point_bz2( data, path );    break;    default:    data ="";    }    return data;    }       array(Path) decode_paths( string data )