summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mate/mate_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mate/mate_util.c b/plugins/mate/mate_util.c
index 7f074e7471..a9a43b303c 100644
--- a/plugins/mate/mate_util.c
+++ b/plugins/mate/mate_util.c
@@ -173,11 +173,11 @@ gchar* scs_subscribe(SCS_collection* c, const gchar* s) {
} else {
chunk = c->mate_huge;
len = SCS_HUGE_SIZE;
- g_warning("mate SCS: string truncated to huge size");
+ g_warning("mate SCS: string truncated due to huge size");
}
orig = g_mem_chunk_alloc(chunk);
- strncpy(orig,s,len);
+ g_strlcpy(orig,s,len);
g_hash_table_insert(c->hash,orig,ip);
}