=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/yank.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/mg/yank.c 2011/07/15 16:50:52 1.10 +++ src/usr.bin/mg/yank.c 2014/03/20 07:47:29 1.11 @@ -1,4 +1,4 @@ -/* $OpenBSD: yank.c,v 1.10 2011/07/15 16:50:52 deraadt Exp $ */ +/* $OpenBSD: yank.c,v 1.11 2014/03/20 07:47:29 lum Exp $ */ /* This file is in the public domain. */ @@ -74,10 +74,12 @@ if ((unsigned)(ksize + KBLOCK) <= (unsigned)ksize) { /* probably 16 bit unsigned */ + dobeep(); ewprintf("Kill buffer size at maximum"); return (FALSE); } if ((nbufp = malloc((unsigned)(ksize + KBLOCK))) == NULL) { + dobeep(); ewprintf("Can't get %ld bytes", (long)(ksize + KBLOCK)); return (FALSE); }