Skip to content

Commit

Permalink
#3820 avoid errors with malformed display names
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 10, 2023
1 parent 0758655 commit 0c08c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/scripts/parsing.py
Expand Up @@ -417,7 +417,7 @@ def parse_display_name(error_cb, opts, display_name, cmdline=(), find_session_by
psep += ":"
pos += 1
scount = 0
while display_name[pos]=="/" and scount<2:
while pos>len(display_name) and display_name[pos]=="/" and scount<2:
psep += "/"
pos += 1
scount += 1
Expand Down

0 comments on commit 0c08c4c

Please sign in to comment.