diff --git a/src/bin/clipboard.cpp b/src/bin/clipboard.cpp index 87f15ca68d..d46ce71fa2 100644 --- a/src/bin/clipboard.cpp +++ b/src/bin/clipboard.cpp @@ -232,9 +232,9 @@ ClipboardApp::Copy(const char *string) if (string == NULL) { // read from standard input - char c; + int c; while ((c = fgetc(stdin)) != EOF) { - inputString += c; + inputString += (char) c; } string = inputString.String();