=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/undo.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- src/usr.bin/mg/undo.c 2005/12/13 07:20:13 1.37 +++ src/usr.bin/mg/undo.c 2005/12/20 05:04:28 1.38 @@ -1,4 +1,4 @@ -/* $OpenBSD: undo.c,v 1.37 2005/12/13 07:20:13 kjell Exp $ */ +/* $OpenBSD: undo.c,v 1.38 2005/12/20 05:04:28 kjell Exp $ */ /* * Copyright (c) 2002 Vincent Labrecque * All rights reserved. @@ -371,18 +371,18 @@ rec = LIST_NEXT(rec, next)) { num++; snprintf(buf, sizeof(buf), - "Record %d =>\t %s at %d ", num, + "%d:\t %s at %d ", num, (rec->type == DELETE) ? "DELETE": (rec->type == INSERT) ? "INSERT": (rec->type == BOUNDARY) ? "----" : "UNKNOWN", rec->pos); if (rec->content) { - strlcat(buf, "\"", sizeof(buf)); + (void)strlcat(buf, "\"", sizeof(buf)); snprintf(tmp, sizeof(tmp), "%.*s", rec->region.r_size, rec->content); - strlcat(buf, tmp, sizeof(buf)); - strlcat(buf, "\"", sizeof(buf)); + (void)strlcat(buf, tmp, sizeof(buf)); + (void)strlcat(buf, "\"", sizeof(buf)); } snprintf(tmp, sizeof(tmp), " [%d]", rec->region.r_size); if (strlcat(buf, tmp, sizeof(buf)) >= sizeof(buf)) {