Removed the need for memcpy()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4875 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d84d3a691
commit
79dd35ec65
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ static void fill_buffer(int pos)
|
||||||
int numread;
|
int numread;
|
||||||
int i;
|
int i;
|
||||||
int found = false ;
|
int found = false ;
|
||||||
char crlf[2] = "\n\0";
|
const char crlf = '\n';
|
||||||
|
|
||||||
if (pos>=file_size-BUFFER_SIZE)
|
if (pos>=file_size-BUFFER_SIZE)
|
||||||
pos = file_size-BUFFER_SIZE;
|
pos = file_size-BUFFER_SIZE;
|
||||||
|
@ -82,7 +82,7 @@ static void fill_buffer(int pos)
|
||||||
/* write to playlist */
|
/* write to playlist */
|
||||||
rb->write(fdw, &buffer[line_end],
|
rb->write(fdw, &buffer[line_end],
|
||||||
rb->strlen( &buffer[line_end] ));
|
rb->strlen( &buffer[line_end] ));
|
||||||
rb->write(fdw, &crlf,1);
|
rb->write(fdw, &crlf, 1);
|
||||||
|
|
||||||
found = false ;
|
found = false ;
|
||||||
results++ ;
|
results++ ;
|
||||||
|
|
Loading…
Reference in a new issue