=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/logmsg.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/cvs/logmsg.c 2005/08/08 14:28:59 1.19 --- src/usr.bin/cvs/logmsg.c 2005/08/10 14:49:20 1.20 *************** *** 1,4 **** ! /* $OpenBSD: logmsg.c,v 1.19 2005/08/08 14:28:59 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: logmsg.c,v 1.20 2005/08/10 14:49:20 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 84,90 **** fprintf(stderr, "The specified message file seems big. " "Proceed anyways? (y/n) "); ! if (fgets(lbuf, sizeof(lbuf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); return (NULL); --- 84,90 ---- fprintf(stderr, "The specified message file seems big. " "Proceed anyways? (y/n) "); ! if (fgets(lbuf, (int)sizeof(lbuf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); return (NULL); *************** *** 122,128 **** */ lcont = 0; ! while (fgets(lbuf, sizeof(lbuf), fp) != NULL) { len = strlen(lbuf); if (len == 0) continue; --- 122,128 ---- */ lcont = 0; ! while (fgets(lbuf, (int)sizeof(lbuf), fp) != NULL) { len = strlen(lbuf); if (len == 0) continue; *************** *** 273,279 **** "c)ontinue, e)dit, !)reuse this message unchanged " "for remaining dirs\nAction: (continue) "); ! if (fgets(buf, sizeof(buf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); break; } --- 273,279 ---- "c)ontinue, e)dit, !)reuse this message unchanged " "for remaining dirs\nAction: (continue) "); ! if (fgets(buf, (int)sizeof(buf), stdin) == NULL) { cvs_log(LP_ERRNO, "failed to read from standard input"); break; }