Ticket #11691: 0002-Fix-CID-1224785.patch

File 0002-Fix-CID-1224785.patch, 700 bytes (added by puckipedia, 10 years ago)
  • src/bin/clipboard.cpp

    From 1bc438de6937929c5446013dab5071ba9bd258fe Mon Sep 17 00:00:00 2001
    From: Puck Meerburg <puck@puckipedia.nl>
    Date: Sat, 27 Dec 2014 18:00:23 +0100
    Subject: [PATCH 2/3] Fix CID 1224785
    
    ---
     src/bin/clipboard.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/bin/clipboard.cpp b/src/bin/clipboard.cpp
    index 87f15ca..d46ce71 100644
    a b ClipboardApp::Copy(const char *string)  
    232232
    233233    if (string == NULL) {
    234234        // read from standard input
    235         char c;
     235        int c;
    236236        while ((c = fgetc(stdin)) != EOF) {
    237             inputString += c;
     237            inputString += (char) c;
    238238        }
    239239
    240240        string = inputString.String();