No need for this array to be writeable
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index 9bff4cd..bfff70c 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -270,7 +270,7 @@
   os->flush();
 }
 
-void SConnection::setEncodings(int nEncodings, rdr::S32* encodings)
+void SConnection::setEncodings(int nEncodings, const rdr::S32* encodings)
 {
   int i;