Skip to content
Snippets Groups Projects
Commit ce5643de authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed an off-by-one in bugfix. Sigh.

parent b9a8e7cd
Branches
Tags
No related merge requests found
......@@ -241,8 +241,7 @@ static int remote_c_zonestatus(server_t *s, remote_cmdargs_t* a)
* is implemented (ref #31)
*/
if (dif.tv_sec < 0) {
const char *busy = "busy";
memcpy(when, busy, strlen(busy));
memcpy(when, "busy", 5);
} else if (snprintf(when, 64, "in %luh%lum%lus",
dif.tv_sec/3600,
(dif.tv_sec % 3600)/60,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment