Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 viz1090 (0+git20250919+ds-3) unstable; urgency=medium
 .
   * Patched data file paths.
Author: Alex Myczko <tar@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2025-10-18

--- viz1090-0+git20250919+ds.orig/Map.cpp
+++ viz1090-0+git20250919+ds/Map.cpp
@@ -38,6 +38,9 @@
 #include <iostream>
 
 #define MAPDATA "/usr/lib/viz1090/mapdata.bin"
+#define MAPNAMES "/usr/lib/viz1090/mapnames"
+#define AIRPORTDATA "/usr/lib/viz1090/airportdata.bin"
+#define AIRPORTNAMES "/usr/lib/viz1090/airportnames"
 
 bool Map::QTInsert(QuadTree *tree, Line *line, int depth) {
 
@@ -257,7 +260,7 @@ Map::Map() {
 //
 
 
-  if((fileptr = fopen("airportdata.bin", "rb"))) {
+  if((fileptr = fopen(AIRPORTDATA, "rb"))) {
     fseek(fileptr, 0, SEEK_END);
     airportPoints_count = ftell(fileptr) / sizeof(float);
     rewind(fileptr);                   
@@ -323,7 +326,7 @@ Map::Map() {
 
 
   std::string line;
-  std::ifstream infile("mapnames");
+  std::ifstream infile(MAPNAMES);
 
 
   while (std::getline(infile, line))  
@@ -352,7 +355,7 @@ Map::Map() {
 
   infile.close();
 
-  infile.open("airportnames");
+  infile.open(AIRPORTNAMES);
 
 
   while (std::getline(infile, line))  
