summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2024-11-26 15:21:56 +1300
committerBossCode45 <human.cyborg42@gmail.com>2024-11-26 15:21:56 +1300
commit72300460c1c1fa294cc4d1f1026d203a5adf4d28 (patch)
treebabbfba0ca2c9994609238b49e281476660a356d /src/commands.cpp
parent8b48a9cfc4b0795a62a515e2519e7194d1d57347 (diff)
downloadYATwm-72300460c1c1fa294cc4d1f1026d203a5adf4d28.tar.gz
YATwm-72300460c1c1fa294cc4d1f1026d203a5adf4d28.zip
feat: Added a program (YATmsg) to communicate with YATwm
Currently just sends a hello message and nothing else, more to come later
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 57cfd0b..5688da4 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -185,7 +185,7 @@ CommandArg* CommandsModule::getCommandArgs(vector<string>& split, const CommandA
rest += " ";
}
args[i-1].str = new char[rest.size()];
- strcpy(args[i-1].str, rest.c_str());
+ strncpy(args[i-1].str, rest.c_str(), rest.size());
return args;
}
case NUM_ARR_REST: