Changeset 127 for trunk/mediafolder/c/cddb/cddb.cpp
- Timestamp:
- Oct 29, 2023, 11:05:48 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mediafolder/c/cddb/cddb.cpp
r104 r127 24 24 #include <io.h> 25 25 #include <fcntl.h> 26 #include <sys/types.h> 26 //#include <sys/itypes.h> 27 #include <types.h> 27 28 #include <sys/socket.h> 28 29 #include <netdb.h> 29 30 #include <errno.h> 31 #include <nerrno.h> 30 32 #include <netinet/in.h> 31 33 … … 42 44 extern int errno; 43 45 LONG extern CDDBDiscID(char * drive,CDDBINFO *cddbInfo); 44 46 //unsigned short _Optlink _bswap(unsigned short s); 45 47 extern int port; 46 48 extern char host[100]; … … 360 362 root->linkCddb(Cddb); 361 363 362 }while( true);364 }while(1); 363 365 364 366 } … … 387 389 sprintf(buffer,"cddb query %08x %d",cddbInfo->discid,cddbInfo->numTracks); 388 390 for(a=0;a<cddbInfo->numTracks;a++) { 389 rc=s nprintf(track,sizeof(track)," %d",cddbInfo->startSector[a]);391 rc=sprintf(track,/*sizeof(track),*/" %d",cddbInfo->startSector[a]); 390 392 if(rc==EOF||rc>=sizeof(track)) { 391 393 printError((char *)"Query: buffer overrun while formatting track offsets.\nPlease report this bug.\n"); … … 399 401 } 400 402 401 rc=s nprintf(track,sizeof(track)," %d\n",cddbInfo->discLength);403 rc=sprintf(track,/*sizeof(track),*/ " %d\n",cddbInfo->discLength); 402 404 if(rc==EOF||rc>=sizeof(track)) { 403 405 printError((char *)"Query: buffer overrun while formatting disclength.\nPlease report this bug.\n");
Note:
See TracChangeset
for help on using the changeset viewer.