=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/xmalloc.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/cvs/xmalloc.c 2015/11/17 18:25:02 1.13 --- src/usr.bin/cvs/xmalloc.c 2019/06/28 05:44:09 1.14 *************** *** 1,4 **** ! /* $OpenBSD: xmalloc.c,v 1.13 2015/11/17 18:25:02 tobias Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland --- 1,4 ---- ! /* $OpenBSD: xmalloc.c,v 1.14 2019/06/28 05:44:09 deraadt Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland *************** *** 85,91 **** i = vasprintf(ret, fmt, ap); va_end(ap); ! if (i < 0 || *ret == NULL) fatal("xasprintf: %s", strerror(errno)); return i; --- 85,91 ---- i = vasprintf(ret, fmt, ap); va_end(ap); ! if (i == -1) fatal("xasprintf: %s", strerror(errno)); return i;