1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-30 03:55:12 +00:00

fix: some javascript errors

This commit is contained in:
jcorporation
2018-07-19 17:33:53 +01:00
parent 82a8074800
commit 3cac31c746
2 changed files with 10 additions and 6 deletions

View File

@@ -271,7 +271,7 @@ void callback_mympd(struct mg_connection *nc, const struct mg_str msg)
if (je == 2) {
int_rc = mpd_run_add_id_to(mpd.conn, p_charbuf1, int_buf);
if (int_rc > -1 )
n = snprintf(mpd.buf, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Added song %s after pos %d\"}", p_charbuf1, int_buf);
n = snprintf(mpd.buf, MAX_SIZE, "{\"type\": \"result\", \"data\": \"ok\"}");
free(p_charbuf1);
}
break;