View | Details | Raw Unified | Return to bug 154357
Collapse All | Expand All

(-)xmodmap/handle.c.orig (-5 / +7 lines)
Lines 904-915 Link Here
904
	    line += n, len -= n;
904
	    line += n, len -= n;
905
	}
905
	}
906
    }
906
    }
907
    
907
908
    if (i > 0 && i != nbuttons) {
908
    if (i > 0 && i != nbuttons) {
909
	badheader ();
909
	fprintf (stderr, "Warning: Wrong number of buttons given " 
910
	fprintf (stderr, "number of buttons, must have %d instead of %d\n",
910
			 "(should be %d instead of %d).\n", nbuttons, i);
911
		 nbuttons, i);
911
	fprintf (stderr, "Warning: Only setting the first %d buttons.\n", i);
912
	return;
912
	fprintf (stderr, "Warning: Using the old values for the remaining"
913
                         " buttons.\n");
914
	i = nbuttons;
913
    }
915
    }
914
916
915
    uop = AllocStruct (union op);
917
    uop = AllocStruct (union op);

Return to bug 154357