diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-13 19:22:07 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-13 19:22:07 +0000 |
commit | 79dd35ec65b618ec27d0d1e052fba7e4cba40825 (patch) | |
tree | e6b6938fa92ae6d28df80ec15469a3d76bbbc5cc /apps/plugins | |
parent | 6d84d3a691f51a6fe58a90207b5cab36f765d9b0 (diff) |
Removed the need for memcpy()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4875 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/search.c b/apps/plugins/search.c index 611a48e0bc..55f65f2b2a 100644 --- a/apps/plugins/search.c +++ b/apps/plugins/search.c @@ -55,7 +55,7 @@ static void fill_buffer(int pos) int numread; int i; int found = false ; - char crlf[2] = "\n\0"; + const char crlf = '\n'; if (pos>=file_size-BUFFER_SIZE) pos = file_size-BUFFER_SIZE; @@ -82,7 +82,7 @@ static void fill_buffer(int pos) /* write to playlist */ rb->write(fdw, &buffer[line_end], rb->strlen( &buffer[line_end] )); - rb->write(fdw, &crlf,1); + rb->write(fdw, &crlf, 1); found = false ; results++ ; |