Changeset 715e29f in rtems-libbsd


Ignore:
Timestamp:
Sep 7, 2021, 11:19:28 PM (7 weeks ago)
Author:
Chris Johns <chrisj@…>
Branches:
6-freebsd-12
Children:
d9dd59d
Parents:
b7c51ac
git-author:
Chris Johns <chrisj@…> (09/07/21 23:19:28)
git-committer:
Chris Johns <chrisj@…> (09/07/21 23:23:09)
Message:

freebsd/libc/rpc: Fix the fgets emulation for the internal netconfig support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/lib/libc/rpc/getnetconfig.c

    rb7c51ac r715e29f  
    9494                return NULL;
    9595        l = strlen(p);
    96         size = l < size ? l : size;
     96        size = l < size ? l : size - 1;
    9797        memcpy(str, p, size);
     98        str[size] = '\0';
    9899        ++netconfig_next;
    99100        return str;
Note: See TracChangeset for help on using the changeset viewer.