diff options
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) | |||
55 | int numread; | 55 | int numread; |
56 | int i; | 56 | int i; |
57 | int found = false ; | 57 | int found = false ; |
58 | char crlf[2] = "\n\0"; | 58 | const char crlf = '\n'; |
59 | 59 | ||
60 | if (pos>=file_size-BUFFER_SIZE) | 60 | if (pos>=file_size-BUFFER_SIZE) |
61 | pos = file_size-BUFFER_SIZE; | 61 | pos = file_size-BUFFER_SIZE; |
@@ -82,7 +82,7 @@ static void fill_buffer(int pos) | |||
82 | /* write to playlist */ | 82 | /* write to playlist */ |
83 | rb->write(fdw, &buffer[line_end], | 83 | rb->write(fdw, &buffer[line_end], |
84 | rb->strlen( &buffer[line_end] )); | 84 | rb->strlen( &buffer[line_end] )); |
85 | rb->write(fdw, &crlf,1); | 85 | rb->write(fdw, &crlf, 1); |
86 | 86 | ||
87 | found = false ; | 87 | found = false ; |
88 | results++ ; | 88 | results++ ; |