1. Brodie Rao
  2. mouseterm

Commits

Brodie Rao  committed 48a8b62

Fixed mousePress result being truncated by snprintf

  • Participants
  • Parent commits 42413c5
  • Branches master

Comments (0)

Files changed (1)

File Mouse.h

View file
 // Returns a control code for a mouse movement (from iTerm)
 inline NSData* mousePress(MouseButton button, unsigned int modflag, int x, int y)
 {
-    char buf[MOUSE_RESPONSE_LEN];
+    char buf[MOUSE_RESPONSE_LEN + 1];
     char cb;
 
     cb = button % 3;