Skip to content

Commit 7c12198

Browse files
committed
code cleanup, fixed memory leaks, ansi color handling
1 parent 9d0eb16 commit 7c12198

File tree

7 files changed

+315
-173
lines changed

7 files changed

+315
-173
lines changed

README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Why am I creating this version, you may ask? Well, during some of my
1616
telnet sessions i've noticed extraneous characters being returned and
1717
such, so... basically, this version should fix those issues.
1818

19-
Altogether with the code, you'll find a nc.exe executable, which was
20-
compiled using GCC 4.5.0 and tested under Windows 7 (HP) 32-bits
19+
You can also find there a nc.exe executable, which was compiled
20+
using GCC 4.8.1 and tested under Windows 7 (HP) 32-bits.
2121

22-
md5sum: 243c24020d658f07521c97d3639f839c nc.exe
22+
SHA1(nc.exe)= c5e19c02a9a1362c67ea87c1e049ce9056425788
2323

2424
If you have some question, feel free to contact me.
2525

doexec.o

-288 Bytes
Binary file not shown.

generic.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define HAVE_FLOCK /* otherwise it's lockf() */
3333

3434
/* if you don't have setsid(), you might have setpgrp().
35-
#define HAVE_SETSID
35+
#define HAVE_SETSID */
3636

3737
/* random() is generally considered better than rand() */
3838
/* xxx: rand48? */
@@ -44,7 +44,7 @@
4444
/* different kinds of term ioctls. How to recognize them, very roughly:
4545
sysv/POSIX_ME_HARDER: termio[s].h, struct termio[s], tty.c_*[]
4646
bsd/old stuff: sgtty.h, ioctl(TIOCSETP), sgttyb.sg_*, tchars.t_*
47-
#define HAVE_TERMIOS
47+
#define HAVE_TERMIOS */
4848

4949
/* dbm vs ndbm */
5050
#define HAVE_NDBM
@@ -130,7 +130,7 @@ There's a BIG swamp lurking where network code of any sort lives.
130130
/* ======================== */
131131

132132
/* By turning OFF various bits of the above, you can customize for
133-
a given platform. /*
133+
a given platform. */
134134

135135
/* DOS boxes, with MSC; you may need to adapt to a different compiler. */
136136
#ifdef MSDOS

getopt.o

-6.38 KB
Binary file not shown.

nc.exe

-13 KB
Binary file not shown.

0 commit comments

Comments
 (0)