diff options
Diffstat (limited to 'net/openag/patches/patch-ad')
-rw-r--r-- | net/openag/patches/patch-ad | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net/openag/patches/patch-ad b/net/openag/patches/patch-ad new file mode 100644 index 00000000000..43154d58f91 --- /dev/null +++ b/net/openag/patches/patch-ad @@ -0,0 +1,45 @@ +$NetBSD: patch-ad,v 1.1 2006/03/23 00:36:37 joerg Exp $ + +--- mp3info/id3v2.cpp.orig 2006-03-23 00:26:32.000000000 +0000 ++++ mp3info/id3v2.cpp +@@ -112,11 +112,11 @@ size_t my_fread(void *input_buffer, size + if( available_data_size < number_of_items*size_of_item ) + { + memcpy(input_buffer , file_handler->big_u.mem_data.current_point , available_data_size); +- (char *)(file_handler->big_u.mem_data.current_point) += available_data_size; ++ file_handler->big_u.mem_data.current_point = (char *)file_handler->big_u.mem_data.current_point + available_data_size; + return available_data_size/size_of_item; + } + memcpy(input_buffer , file_handler->big_u.mem_data.current_point , number_of_items*size_of_item); +- (char *)(file_handler->big_u.mem_data.current_point) += number_of_items*size_of_item; ++ file_handler->big_u.mem_data.current_point = (char *)file_handler->big_u.mem_data.current_point + number_of_items*size_of_item; + return number_of_items*size_of_item; + // break; /* NOT needed */ + } +@@ -155,7 +155,7 @@ int my_getc( MY_FILE *file_handler ) + return EOF; + } + char_to_return = *((char *)(file_handler->big_u.mem_data.current_point)); +- ((char *)(file_handler->big_u.mem_data.current_point))++; ++ file_handler->big_u.mem_data.current_point = (char *)file_handler->big_u.mem_data.current_point + 1; + return char_to_return; + // break; /* NOT needed */ + } +@@ -190,7 +190,7 @@ int my_fgetc( MY_FILE *file_handle ) + return EOF; + } + char_to_return = *((char *)(file_handle->big_u.mem_data.current_point)); +- ((char *)(file_handle->big_u.mem_data.current_point))++; ++ file_handle->big_u.mem_data.current_point = (char *)file_handle->big_u.mem_data.current_point + 1; + return char_to_return; + // break; /* NOT needed */ + } +@@ -236,7 +236,7 @@ long my_fseek( MY_FILE *file_handler , l + // errno = EINVAL; + return -1; + } +- (char *)(file_handler->big_u.mem_data.current_point) += offset; ++ file_handler->big_u.mem_data.current_point = (char *)file_handler->big_u.mem_data.current_point + offset; + break; + } + case SEEK_END : |