[msbuild] bump to help debug wrench build failure
[mono.git] / mono / utils / mono-threads-posix.c
index d97d0adcc8c8e0f1435a20d9ef94a6309f606684..138cc9e4b6aebd411ea1e0f75b88ce42b1cb5176 100644 (file)
@@ -157,6 +157,7 @@ mono_threads_pthread_kill (MonoThreadInfo *info, int signum)
 #elif defined (HAVE_PTHREAD_KILL)
        result = pthread_kill (mono_thread_info_get_tid (info), signum);
 #else
+       result = -1;
        g_error ("pthread_kill () is not supported by this platform");
 #endif
 
@@ -205,7 +206,7 @@ mono_native_thread_set_name (MonoNativeThreadId tid, const char *name)
        } else {
                char n [63];
 
-               memcpy (n, name, sizeof (n) - 1);
+               strncpy (n, name, sizeof (n) - 1);
                n [sizeof (n) - 1] = '\0';
                pthread_setname_np (n);
        }
@@ -215,7 +216,7 @@ mono_native_thread_set_name (MonoNativeThreadId tid, const char *name)
        } else {
                char n [PTHREAD_MAX_NAMELEN_NP];
 
-               memcpy (n, name, sizeof (n) - 1);
+               strncpy (n, name, sizeof (n) - 1);
                n [sizeof (n) - 1] = '\0';
                pthread_setname_np (tid, "%s", (void*)n);
        }
@@ -225,7 +226,7 @@ mono_native_thread_set_name (MonoNativeThreadId tid, const char *name)
        } else {
                char n [16];
 
-               memcpy (n, name, sizeof (n) - 1);
+               strncpy (n, name, sizeof (n) - 1);
                n [sizeof (n) - 1] = '\0';
                pthread_setname_np (tid, n);
        }