Re: [PATCH -next] staging: fbtft: use strcmp() instead of strncmp() for subsystem lookup

2018-12-18 Thread YueHaibing
sorry, Pls ignore this. The title need fix. On 2018/12/18 21:09, YueHaibing wrote: > strncmp() stops comparing when either the end of one of the first two > arguments is reached or when 'n' characters have been compared, whichever > comes first.That means that strncmp(s1, s2, n) is equivalent

[PATCH -next] staging: fbtft: use strcmp() instead of strncmp() for subsystem lookup

2018-12-18 Thread YueHaibing
strncmp() stops comparing when either the end of one of the first two arguments is reached or when 'n' characters have been compared, whichever comes first.That means that strncmp(s1, s2, n) is equivalent to strcmp(s1, s2) if n exceeds the length of s1 or the length of s2. This patch avoids