Commit cc69e56c authored by Yang Tse's avatar Yang Tse
Browse files

hostip.c: fix potential write past the end of string buffer

parent 8e25d1b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ create_hostcache_id(const char *name, int port)
  char *ptr = id;
  if(ptr) {
    /* lower case the name part */
    while(*ptr != ':') {
    while(*ptr && (*ptr != ':')) {
      *ptr = (char)TOLOWER(*ptr);
      ptr++;
    }