Bug#311438: Patch to fix the problem.
The problem is an off-by-one when working out the position of the
first digit after the slash in -S/xxx
Here's a patch:
--- xc-orig/programs/xterm/main.c 2005-06-01 15:19:07.065945065 +1000
+++ xc/programs/xterm/main.c 2005-06-01 15:17:53.964033669 +1000
@@ -1430,7 +1430,7 @@
Bool code = False;
if (leaf != option) {
- if (leaf - option > 1
+ if (leaf - option > 0
&& isdigit(CharOf(*leaf))
&& sscanf(leaf, "%d", &am_slave) == 1) {
size_t len = leaf - option - 1;
Reply to: