Commit Graph

69 Commits

Author SHA1 Message Date
7b8ea2bf39 Update copyright year 2021-10-30 22:30:12 +03:00
05aaff88d4 Update version information, changelog and readme 2021-10-30 22:21:25 +03:00
fca278e092 - Quit gracefully when Ctrl-D or Ctrl-C is pressed
- Remove "exit" and "quit" as quit commands
2021-10-30 22:16:29 +03:00
b3147ebe43 Fix erroneous string length check 2021-02-15 04:31:07 +02:00
48c065c304 Use setvbuf() instead of fflush() 2021-02-15 03:29:44 +02:00
29a1c99f82 Merge pull request #53 from AddisonG/master
Fix compiler warning
2021-02-12 04:23:54 +02:00
bf11460a0d Merge pull request #39 from kabiroberai/master
Flush stdout when needed
2021-02-08 22:51:54 +02:00
ada14bb4d9 Fixes typo in ANSI escape sequence for LCYAN 2021-01-13 19:22:02 -05:00
336f528668 Fixed compiler bug
This fixes the compiler issue:

```
mcrcon.c: In function ‘packet_build’:
mcrcon.c:576:2: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation]
  strncpy(packet.data, s1, DATA_BUFFSIZE);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2020-08-12 14:10:58 +10:00
58a7a86bc3 Flush stdout when needed
This is required on certain machines (eg the iSH emulator on iOS)
2020-01-31 17:26:27 +05:30
b118b7b7b9 Change year in copyright texts and manual page 2020-01-02 02:22:44 +02:00
f351fb134e - Deprecate -i flag for terminal mode
- Use strcasecmp() instead strcmp() to check exit command
2019-12-22 16:27:36 +02:00
af5e88b528 Update Makefile 2019-12-22 00:05:31 +02:00
876201fe5a Add workaround to prevent server-side bug.
https://bugs.mojang.com/browse/MC-154617
2019-12-21 23:12:39 +02:00
3c071c0c45 - Add exit string detection
- Stylistic change in getopt loop
2019-12-21 22:25:08 +02:00
cffa73d223 Remove unused functions 2019-12-20 21:02:21 +02:00
c62d5c8a70 Update usage and version texts 2019-12-20 20:58:40 +02:00
8b75ddf4bf Indentation style change 2019-12-20 19:56:05 +02:00
4f3a455095 Add more validation to mcrcon_parse_seconds() 2019-12-19 17:34:19 +02:00
0c48fbb847 Remove unused option characters 2019-12-18 19:34:08 +02:00
fcc9d6d09b Tabs are evil 2019-12-18 19:19:30 +02:00
018592abc5 Code cleanups 2019-12-18 19:16:06 +02:00
0f796b6bbc Tidy code formatting 2019-12-18 19:06:37 +02:00
83457075b9 Make command throttling argument parsing more robust 2019-12-18 18:19:08 +02:00
5a0b9ea4e5 Let's avoid one more statement 2019-12-14 18:06:12 +01:00
a16d875626 Adds a -w option to throttle commands execution 2019-12-14 17:48:43 +01:00
9667e8f066 Change email text 2019-10-21 21:43:54 +03:00
16c2db5c78 Tidy up man page and usage text 2019-10-21 21:35:38 +03:00
8f561f803a Change bug report email address 2019-10-21 20:58:14 +03:00
7d5cb8016e Change DATA_BUFFSIZE to 4096 bytes 2019-10-21 14:23:41 +03:00
208e040305 Fix invalid free 2019-10-20 16:08:51 +03:00
989dfd6928 Remove unused code 2019-10-20 16:01:45 +03:00
6bfd6801c9 Update version number and man page 2019-10-20 15:49:06 +03:00
f0580220e3 Merge from upstream develop 2019-10-20 15:39:44 +03:00
0525c3776e Handle fragmented data transmission
* Resolve #25
2019-10-17 16:06:35 +09:00
408ec3b1c1 Add *.plist to .gitignore and change exit code (fix #29) 2019-10-15 15:30:43 +03:00
21337ef5d7 Small fix. :-D 2019-09-20 13:50:20 +03:00
ac31d9bc5a Added check for fgets() return value. 2019-09-20 13:36:49 +03:00
60fa0e42d8 Added 'global' prefix for global variables and fixed 'rsock' variable shadowing. 2019-09-20 13:20:35 +03:00
872ddccbfc Set default address to localhost 2019-07-01 00:03:41 -04:00
a2b2117af5 Incrementing version number 2019-04-15 09:03:49 +03:00
42f06c89a8 Fix UTF-8 and something about color code 2017-08-17 23:36:04 +08:00
02ae39747e Changes per feedback on #16 2017-01-03 15:40:43 -05:00
0198ca77a7 Touchups for MacOS 2016-12-26 22:12:00 -05:00
3fdf9d570d Version history draft for v0.6.0, updated version numbering and changed console prompt character back to original one. 2016-12-17 20:17:32 +02:00
d0e293f249 Changed program return values to EXIT_FAILURE and EXIT_SUCCESS macros. 2016-12-16 21:39:30 +02:00
2f8c462c0f Added support for setting basic options with environment variables. 2016-12-16 21:13:01 +02:00
b878ff1255 Comment cleanups and munged output bug (https://github.com/Tiiffi/mcrcon/issues/2) fixed. 2016-12-14 00:10:49 +02:00
57d0cdbf95 Minor cleanups. 2016-11-15 21:59:30 +02:00
f879937329 Typo fix. 2016-11-15 21:13:48 +02:00