If environment variable "AXIOM" is longer than 128 characters
(which is quite easy to achieve), HyperDoc will segfault during
launching.

So I'm changing it to 2048, the same as other places.

I plan to add support for PATH_MAX and add checking for path
string manipulation later.

diff --git a/src/hyper/titlebar.c b/src/hyper/titlebar.c
index 0593c7c3..b80ffe06 100644
--- a/src/hyper/titlebar.c
+++ b/src/hyper/titlebar.c
@@ -299,7 +299,7 @@ static void
  readTitleBarImages(void)
  {
      int w, h;
-    char filename[128];
+    char filename[2048];
      char *fricas_env_var = NULL;

      fricas_env_var = getenv("AXIOM");

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To post to this group, send email to fricas-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to