1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-04-13 06:13:15 +00:00

Fix: small cleanups

This commit is contained in:
jcorporation 2018-12-02 23:43:49 +00:00
parent 27967c072a
commit 08acd687b7
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<body>
<header>
<nav class="navbar navbar-expand navbar-dark fixed-top bg-dark">
<a class="navbar-brand" data-toggle="dropdown" href="#">
<a class="navbar-brand" href="#">
<span class="material-icons header-logo">play_circle_outline</span>myMPD
</a>
</nav>

View File

@ -1560,8 +1560,8 @@ int mympd_syscmd(char *buffer, char *cmd, int order) {
if (read > 0) {
strtok(line, "\n");
if (system(line) == 0) {
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", line);
LOG_VERBOSE() printf("Executed syscmd \"%s\"\n", line);
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", cmd);
LOG_VERBOSE() printf("Executed syscmd: \"%s\"\n", line);
}
else {
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"error\", \"data\": \"Executing cmd %s failed.\"}", cmd);