diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-11-26 15:21:56 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-11-26 15:21:56 +1300 |
| commit | 72300460c1c1fa294cc4d1f1026d203a5adf4d28 (patch) | |
| tree | babbfba0ca2c9994609238b49e281476660a356d /src/commands.cpp | |
| parent | 8b48a9cfc4b0795a62a515e2519e7194d1d57347 (diff) | |
| download | YATwm-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.cpp | 2 |
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: |
