d (dbtool) -> a (audio file selector)
a (audio file sender) -> v (virtual streaming system)
*/
char *cmd_perms_itohuman(unsigned int perms)
{
- char *msg = para_malloc(7 * sizeof(char));
+ char *msg = para_malloc(5 * sizeof(char));
- msg[0] = perms & DB_READ? 'd' : '-';
- msg[1] = perms & DB_WRITE? 'D' : '-';
- msg[2] = perms & VSS_READ? 'a' : '-';
- msg[3] = perms & VSS_WRITE? 'A' : '-';
+ msg[0] = perms & DB_READ? 'a' : '-';
+ msg[1] = perms & DB_WRITE? 'A' : '-';
+ msg[2] = perms & VSS_READ? 'v' : '-';
+ msg[3] = perms & VSS_WRITE? 'V' : '-';
msg[4] = '\0';
return msg;
}