Commit 8488c17b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #123: Purr Data is crashing when I call a help file. Use FILENAME_MAX instead of MAXPDSTRING

parent cb0e4aa5
......@@ -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 ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment