Changeset 49af7dbfc05bb99f154b3213bf46871d15b90bbd
- Timestamp:
- 20/05/06 13:40:15
(3 years ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1148125215 +0000
- git-parent:
[5b8844d090c4048849aa7ea350214032c32bbfe1]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1148125215 +0000
- Message:
Compare using the right data types
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0d2c5a8 |
r49af7db |
|
| 1361 | 1361 | * the content-type (by the Annodex standard) */ |
|---|
| 1362 | 1362 | content_type_string[0] = '\0'; |
|---|
| 1363 | | if( !strncasecmp( &p_oggpacket->packet[28], "Content-Type: ", 14 ) ) |
|---|
| | 1363 | if( !strncasecmp( (char*)(&p_oggpacket->packet[28]), "Content-Type: ", 14 ) ) |
|---|
| 1364 | 1364 | { |
|---|
| 1365 | 1365 | uint8_t *p = memchr( &p_oggpacket->packet[42], '\r', |
|---|
| 1366 | 1366 | p_oggpacket->bytes - 1 ); |
|---|
| 1367 | 1367 | if( p && p[0] == '\r' && p[1] == '\n' ) |
|---|
| 1368 | | sscanf( &p_oggpacket->packet[42], "%1024s\r\n", |
|---|
| | 1368 | sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n", |
|---|
| 1369 | 1369 | content_type_string ); |
|---|
| 1370 | 1370 | } |
|---|