From 8488c17bd45af879870378d822a29c7b2af51823 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sat, 1 Oct 2016 00:55:36 -0400 Subject: [PATCH] fix #123: Purr Data is crashing when I call a help file. Use FILENAME_MAX instead of MAXPDSTRING --- pd/src/g_editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 6852c24a3..19ab93151 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -3061,8 +3061,8 @@ void canvas_done_popup(t_canvas *x, t_float which, t_float xpos, else { strncpy(namebuf, class_gethelpname(pd_class(&y->g_pd)), - MAXPDSTRING-1); - namebuf[MAXPDSTRING-1] = 0; + FILENAME_MAX-1); + namebuf[FILENAME_MAX-1] = 0; dir = class_gethelpdir(pd_class(&y->g_pd)); } if (strlen(namebuf) < 4 || -- GitLab