[Git][wine/wine][master] cmd: Fix out-of-bound access when handling tilde modifiers.