Skip to content

Commit

Permalink
code cleanup, fixed memory leaks, ansi color handling
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocr committed Apr 2, 2014
1 parent 9d0eb16 commit 7c12198
Show file tree
Hide file tree
Showing 7 changed files with 315 additions and 173 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Why am I creating this version, you may ask? Well, during some of my
telnet sessions i've noticed extraneous characters being returned and
such, so... basically, this version should fix those issues.

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

md5sum: 243c24020d658f07521c97d3639f839c nc.exe
SHA1(nc.exe)= c5e19c02a9a1362c67ea87c1e049ce9056425788

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

Expand Down
Binary file removed doexec.o
Binary file not shown.
6 changes: 3 additions & 3 deletions generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define HAVE_FLOCK /* otherwise it's lockf() */

/* if you don't have setsid(), you might have setpgrp().
#define HAVE_SETSID
#define HAVE_SETSID */

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

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

/* By turning OFF various bits of the above, you can customize for
a given platform. /*
a given platform. */

/* DOS boxes, with MSC; you may need to adapt to a different compiler. */
#ifdef MSDOS
Expand Down
Binary file removed getopt.o
Binary file not shown.
Binary file modified nc.exe
Binary file not shown.
Loading

0 comments on commit 7c12198

Please sign in to comment.