mirror of
https://github.com/postgres/postgres.git
synced 2025-11-29 23:43:17 +03:00
Remove a useless length check.
Author: Chao Li <lic@highgo.com> Discussion: https://postgr.es/m/CAEoWx2mW0P8CByavV58zm3=eb2MQHaKOcDEF5B2UJYRyC2c3ig@mail.gmail.com
This commit is contained in:
@@ -434,9 +434,6 @@ strlower_libc_sb(char *dest, size_t destsize, const char *src, ssize_t srclen,
|
||||
locale_t loc = locale->lt;
|
||||
char *p;
|
||||
|
||||
if (srclen + 1 > destsize)
|
||||
return srclen;
|
||||
|
||||
memcpy(dest, src, srclen);
|
||||
dest[srclen] = '\0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user