Commit 674b0ac3 authored by Led's avatar Led

0.8.4

parent 53f5a137
ver 0.8.4 (2003/8/13)
1) Fix a bug where garbage is returned with errors in "list" command
ver 0.8.3 (2003/8/12)
1) Fix a compilation error on older linux systems
2) Fix a bug in searching by title
......
......@@ -363,7 +363,7 @@ int processCommand(FILE * fp, int argArrayLength, char ** argArray) {
}
else if(0==strcmp(argArray[0],COMMAND_LIST)) {
char * arg1 = NULL;
if(argArrayLength>3) {
if(argArrayLength>3 || argArrayLength<2) {
myfprintf(fp,"%s wrong number of arguments for \"%s\"\n",COMMAND_RESPOND_ERROR,argArray[0]);
return -1;
}
......
......@@ -1713,7 +1713,7 @@ fi
# Define the identity of the package.
PACKAGE=mpd
VERSION=0.8.3
VERSION=0.8.4
cat >>confdefs.h <<_ACEOF
......
AC_INIT(main.c)
AM_INIT_AUTOMAKE(mpd, 0.8.3)
AM_INIT_AUTOMAKE(mpd, 0.8.4)
AC_PROG_CC
AC_PROG_INSTALL
......
......@@ -387,7 +387,7 @@ int printAllAlbums(FILE * fp, char * artist) {
int printAllKeysOfTable(FILE * fp, char * table, char * arg1) {
if(strcmp(table,TABLES_ARTIST)==0) {
if(arg1!=NULL) {
myfprintf(fp,"%s %s table takes no args\n",COMMAND_RESPOND_ERROR);
myfprintf(fp,"%s %s table takes no args\n",COMMAND_RESPOND_ERROR,table);
return -1;
}
return printAllArtists(fp);
......@@ -396,7 +396,7 @@ int printAllKeysOfTable(FILE * fp, char * table, char * arg1) {
return printAllAlbums(fp,arg1);
}
else {
myfprintf(fp,"%s table \"%s\" does not exist or not available for listing\n");
myfprintf(fp,"%s table \"%s\" does not exist or not available for listing\n",COMMAND_RESPOND_ERROR,table);
return -1;
}
}
Markdown is supported
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