Skip to content
Snippets Groups Projects
Commit 939948df authored by Albert Gräf's avatar Albert Gräf Committed by Albert Gräf
Browse files

Bugfix (import_output, fix potentially unterminated strncpy).

parent be953fd7
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,8 @@ static void import_output(t_import* x)
* namespace, [import] will output the new element on the next bang. */
if(x->x_current)
{
strncpy(buffer, x->x_current->nl_string, MAXPDSTRING);
strncpy(buffer, x->x_current->nl_string, MAXPDSTRING-1);
buffer[MAXPDSTRING-1] = 0;
outlet_symbol( x->x_data_outlet, gensym(buffer));
x->x_current = x->x_current->nl_next;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment