This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
xmenu
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fixing segfault in case of empty input
master
phillbush
4 years ago
parent
a5ddd2cd22
commit
ddb15acfde
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
xmenu.c
+ 2
- 0
xmenu.c
View File
@@ -379,6 +379,8 @@ parsestdin(void)
char *label, *output;
unsigned level = 0;
rootmenu = NULL;
while (fgets(buf, BUFSIZ, stdin) != NULL) {
/* get the indentation level */
level = strspn(buf, "\t");
Write
Preview
Loading…
Cancel
Save