--- a/src/Credits.cxx
+++ b/src/Credits.cxx
@@ -349,7 +349,7 @@
 		buf[i*2 + 1] = static_cast<char>(attr);
 	}
 	wsci.SendPointer(SCI_ADDSTYLEDTEXT,
-	        static_cast<int>(len*2), const_cast<char *>(buf.data()));
+	        static_cast<int>(len*2), const_cast<char *>(&buf[0]));
 }
 
 void SetAboutStyle(GUI::ScintillaWindow &wsci, int style, Colour fore) {