• Tobias Stoeckmann's avatar
    Handle out of memory conditions. · 30986cb2
    Tobias Stoeckmann authored
    malloc and realloc could return NULL when no memory is available.
    The code doesn't handle errors, so use xmalloc/xrealloc instead.
    
    While at it, sync alloclen's type with len's type, so both are ssize_t.
    30986cb2
pwdx.c 3.49 KB