Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions clipboard/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright(C) 2020 Chris Warren-Smith

#include "config.h"
#include <stdio.h>
#include <string.h>

#include "libclipboard/include/libclipboard.h"
Expand All @@ -31,7 +32,7 @@ int sblib_proc_count() {
int sblib_proc_getname(int index, char *proc_name) {
int result;
if (index < sblib_proc_count()) {
strcpy(proc_name, "COPY");
snprintf(proc_name, 64, "COPY");
result = 1;
} else {
result = 0;
Expand All @@ -58,7 +59,7 @@ int sblib_func_count() {
int sblib_func_getname(int index, char *proc_name) {
int result;
if (index < sblib_func_count()) {
strcpy(proc_name, "PASTE");
snprintf(proc_name, 64, "PASTE");
result = 1;
} else {
result = 0;
Expand Down