diff --git a/apps/settings.c b/apps/settings.c index ad651a9393..a66a8b1acf 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -483,6 +483,8 @@ static int read_line(int fd, char* buffer, int buffer_size) if ( count < buffer_size ) buffer[count] = 0; + else + buffer[buffer_size-1] = 0; return count; }