Ticket #950: stream_cddb.c.diff

File stream_cddb.c.diff, 807 bytes (added by r_togni@…, 19 years ago)

Try port 80 is other fails

  • stream_cddb.c

     
    453453                } else {
    454454                        len = ptr2-ptr+1;
    455455                }
     456                len = FFMIN(sizeof(album_title) - 1, len);
    456457                strncpy(album_title, ptr, len);
    457                 album_title[len-2]='\0';
     458                album_title[len]='\0';
    458459        }
    459460        mp_msg(MSGT_DEMUX, MSGL_STATUS, MSGTR_MPDEMUX_CDDB_ParseOKFoundAlbumTitle, album_title);
    460461        return 0;
     
    490491                                } else {
    491492                                        len = ptr2-ptr+1;
    492493                                }
     494                                len = FFMIN(sizeof(album_title) - 1,len);
    493495                                strncpy(album_title, ptr, len);
    494                                 album_title[len-2]='\0';
     496                                album_title[len]='\0';
    495497                        }
    496498                        mp_msg(MSGT_DEMUX, MSGL_STATUS, MSGTR_MPDEMUX_CDDB_ParseOKFoundAlbumTitle, album_title);
    497499                        return cddb_request_titles(cddb_data);