diff --git a/api/boinc_opencl.cpp b/api/boinc_opencl.cpp
index 1e79f21951956c2a4dfd2a14352c19488fd8f523..80b87a8373b1fe059bc304ec28a96d9f88a114b6 100644
--- a/api/boinc_opencl.cpp
+++ b/api/boinc_opencl.cpp
@@ -53,26 +53,26 @@
 //  CUDA, so a device_num may not correspond to its opencl_device_index 
 //  even if all GPUs are from NVIDIA.
 //
-int get_vendor(cl_device_id device_id, char* vendor) {
+int get_vendor(cl_device_id device_id, char* vendor, int len) {
     int retval = 0;
 
     retval = clGetDeviceInfo(
-        device_id, CL_DEVICE_VENDOR, sizeof(vendor), vendor, NULL
+        device_id, CL_DEVICE_VENDOR, len, vendor, NULL
     );
     if ((retval != CL_SUCCESS) || (strlen(vendor)==0)) return retval;
         
-    if ((strstr(vendor, "AMD")) ||  
+    if ((strstr(vendor, "AMD")) ||
         (strstr(vendor, "Advanced Micro Devices, Inc."))
     ) {
-        strcpy(vendor, GPU_TYPE_ATI);
+        strcpy(vendor, GPU_TYPE_ATI);       // "ATI"
     }
     
     if (strcasestr(vendor, "nvidia")) {
-        strcpy(vendor, GPU_TYPE_NVIDIA);
+        strcpy(vendor, GPU_TYPE_NVIDIA);    // "NVIDIA"
     }
 
     if (strcasestr(vendor, "intel")) {
-        strcpy(vendor, GPU_TYPE_INTEL);
+        strcpy(vendor, GPU_TYPE_INTEL);     // "intel_gpu"
     }
 
     if (!strlen(vendor)) return CL_INVALID_DEVICE_TYPE;
@@ -112,7 +112,7 @@ int boinc_get_opencl_ids_aux(
         if (opencl_device_index >= 0) {
             if (opencl_device_index < (int)num_devices) {
                 device_id = devices[opencl_device_index];
-                retval = get_vendor(device_id, vendor);
+                retval = get_vendor(device_id, vendor, sizeof(vendor));
                 if (retval != CL_SUCCESS) continue;
             
                 if (!strcmp(vendor, type)) {
@@ -131,7 +131,7 @@ int boinc_get_opencl_ids_aux(
         for (device_index=0; device_index<(int)num_devices; ++device_index) {
             device_id = devices[device_index];
 
-            retval = get_vendor(device_id, vendor);
+            retval = get_vendor(device_id, vendor, sizeof(vendor));
             if (retval != CL_SUCCESS) continue;
     
             if (!strcmp(vendor, type)) {
diff --git a/clientgui/BOINCHtmlLBox.h b/clientgui/BOINCHtmlLBox.h
old mode 100755
new mode 100644
diff --git a/clientgui/BOINCInternetFSHandler.cpp b/clientgui/BOINCInternetFSHandler.cpp
old mode 100755
new mode 100644
diff --git a/clientgui/NoticeListCtrl.cpp b/clientgui/NoticeListCtrl.cpp
old mode 100755
new mode 100644
diff --git a/clientgui/NoticeListCtrl.h b/clientgui/NoticeListCtrl.h
old mode 100755
new mode 100644
diff --git a/clientgui/ViewNotices.cpp b/clientgui/ViewNotices.cpp
old mode 100755
new mode 100644
diff --git a/clientgui/ViewNotices.h b/clientgui/ViewNotices.h
old mode 100755
new mode 100644