SCCS-vsn: usr.bin/comm/comm.c 5.2
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)comm.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)comm.c 5.2 (Berkeley) %G%";
#endif /* not lint */
#include <sys/file.h>
#endif /* not lint */
#include <sys/file.h>
/* if one file done, display the rest of the other file */
if (file1done) {
if (!file2done && col2)
/* if one file done, display the rest of the other file */
if (file1done) {
if (!file2done && col2)
- show(fp1, col2, line2);
+ show(fp2, col2, line2);
break;
}
if (file2done) {
if (!file1done && col1)
break;
}
if (file2done) {
if (!file1done && col1)
- show(fp2, col1, line1);
+ show(fp1, col1, line1);