X-Debbugs-Cc: debian-hurd@lists.debian.org

Dear Maintainer,

Would you consider the attached patch aiming to address the long standing FTBS
on the Hurd, and allow Hurd users to explore gopher space?

Best regards,
João
diff -ruNd gopher-3.0.17.4.orig/gopher/download.c gopher-3.0.17.4/gopher/download.c
--- gopher-3.0.17.4.orig/gopher/download.c	2025-04-10 19:08:57.757636876 +0200
+++ gopher-3.0.17.4/gopher/download.c	2025-04-10 19:08:21.505457111 +0200
@@ -256,10 +256,10 @@
      }
 
 #ifdef HAVE_GETCWD
-     getcwd(curcwd, MAXPATHLEN);
+     curcwd = getcwd(NULL, 0);
 #else
 #ifdef HAVE_GET_CURRENT_DIR_NAME
-       curcwd = get_current_dir_name();
+     curcwd = get_current_dir_name();
 #else
      getwd(curcwd);
 #endif 
@@ -402,7 +402,7 @@
      GSsetPath(gs, names[choice]);
      
 #ifdef HAVE_GETCWD
-     getcwd(tmppath,MAXPATHLEN);
+     tmppath = getcwd(NULL, 0);
 #else
 #ifdef HAVE_GET_CURRENT_DIR_NAME
      tmppath = get_current_dir_name();

Reply via email to