Mercurial > audlegacy
comparison Plugins/Input/console/Audacious_Driver.cpp @ 481:bb3698dfd455 trunk
[svn] Tag length enforcement by null-terminating the strings. By Kiyoshi Aman <kiyoshi.aman -at- gmail.com>.
| author | chainsaw |
|---|---|
| date | Sat, 21 Jan 2006 10:03:15 -0800 |
| parents | 0b9507985f0d |
| children | 7c5e886205ef |
comparison
equal
deleted
inserted
replaced
| 480:c1dfb4b13be8 | 481:bb3698dfd455 |
|---|---|
| 105 if (header.version > 10) | 105 if (header.version > 10) |
| 106 { | 106 { |
| 107 TitleInput *tinput; | 107 TitleInput *tinput; |
| 108 | 108 |
| 109 tinput = bmp_title_input_new(); | 109 tinput = bmp_title_input_new(); |
| 110 | |
| 111 header.author[31] = '\0'; | |
| 112 header.game[31] = '\0'; | |
| 113 header.song[31] = '\0'; | |
| 110 | 114 |
| 111 tinput->performer = g_strdup(header.author); | 115 tinput->performer = g_strdup(header.author); |
| 112 tinput->album_name = g_strdup(header.game); | 116 tinput->album_name = g_strdup(header.game); |
| 113 tinput->track_name = g_strdup(header.song); | 117 tinput->track_name = g_strdup(header.song); |
| 114 | 118 |
| 138 if (header.game) | 142 if (header.game) |
| 139 { | 143 { |
| 140 TitleInput *tinput; | 144 TitleInput *tinput; |
| 141 | 145 |
| 142 tinput = bmp_title_input_new(); | 146 tinput = bmp_title_input_new(); |
| 147 | |
| 148 header.author[31] = '\0'; | |
| 149 header.copyright[31] = '\0'; | |
| 150 header.game[31] = '\0'; | |
| 143 | 151 |
| 144 tinput->performer = g_strdup(header.author); | 152 tinput->performer = g_strdup(header.author); |
| 145 tinput->album_name = g_strdup(header.copyright); | 153 tinput->album_name = g_strdup(header.copyright); |
| 146 tinput->track_name = g_strdup(header.game); | 154 tinput->track_name = g_strdup(header.game); |
| 147 | 155 |
| 171 if (header.game) | 179 if (header.game) |
| 172 { | 180 { |
| 173 TitleInput *tinput; | 181 TitleInput *tinput; |
| 174 | 182 |
| 175 tinput = bmp_title_input_new(); | 183 tinput = bmp_title_input_new(); |
| 184 | |
| 185 header.author[31] = '\0'; | |
| 186 header.copyright[31] = '\0'; | |
| 187 header.game[31] = '\0'; | |
| 176 | 188 |
| 177 tinput->performer = g_strdup(header.author); | 189 tinput->performer = g_strdup(header.author); |
| 178 tinput->album_name = g_strdup(header.copyright); | 190 tinput->album_name = g_strdup(header.copyright); |
| 179 tinput->track_name = g_strdup(header.game); | 191 tinput->track_name = g_strdup(header.game); |
| 180 | 192 |
| 204 if (header.song) | 216 if (header.song) |
| 205 { | 217 { |
| 206 TitleInput *tinput; | 218 TitleInput *tinput; |
| 207 | 219 |
| 208 tinput = bmp_title_input_new(); | 220 tinput = bmp_title_input_new(); |
| 221 | |
| 222 header.game[31] = '\0'; | |
| 223 header.copyright[31] = '\0'; | |
| 224 header.song[31] = '\0'; | |
| 209 | 225 |
| 210 tinput->performer = g_strdup(header.game); | 226 tinput->performer = g_strdup(header.game); |
| 211 tinput->album_name = g_strdup(header.copyright); | 227 tinput->album_name = g_strdup(header.copyright); |
| 212 tinput->track_name = g_strdup(header.song); | 228 tinput->track_name = g_strdup(header.song); |
| 213 | 229 |
