diff options
Diffstat (limited to 'apps/plugins/dict.c')
-rw-r--r-- | apps/plugins/dict.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/dict.c b/apps/plugins/dict.c index 0c1ddf33a9..fcc55faef1 100644 --- a/apps/plugins/dict.c +++ b/apps/plugins/dict.c | |||
@@ -283,8 +283,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
283 | while (1) | 283 | while (1) |
284 | { | 284 | { |
285 | /* copy one lcd line */ | 285 | /* copy one lcd line */ |
286 | rb->strncpy(output, ptr, display_columns); | 286 | rb->strlcpy(output, ptr, display_columns + 1); |
287 | output[display_columns] = '\0'; | ||
288 | 287 | ||
289 | /* typecast to kill a warning... */ | 288 | /* typecast to kill a warning... */ |
290 | if((int)rb->strlen(ptr) < display_columns) | 289 | if((int)rb->strlen(ptr) < display_columns) |