Skip to content
Snippets Groups Projects
Commit e294b129 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix invalid read when no args are supplied

parent 8d80f47c
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc,
i=*n;
s=*str;
if(' '==s[i]) {
if(s && ' '==s[i]) {
s[i]=0;
}
}
......
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