diff options
author | Alexander Logvinov <avl@FreeBSD.org> | 2010-05-11 22:05:32 +0000 |
---|---|---|
committer | Alexander Logvinov <avl@FreeBSD.org> | 2010-05-11 22:05:32 +0000 |
commit | 0ccc4f67677fcd3f4b12e99a95b4a01195e50c0f (patch) | |
tree | 8c1784c4ab5f5d6b77fa05cc4f5d48c7a107f0d1 /mail/heirloom-mailx/files | |
parent | 14c1f32ea67e47d7f1fdf417736099abcc88d74b (diff) | |
download | ports-0ccc4f67677fcd3f4b12e99a95b4a01195e50c0f.tar.gz ports-0ccc4f67677fcd3f4b12e99a95b4a01195e50c0f.zip |
Notes
Diffstat (limited to 'mail/heirloom-mailx/files')
-rw-r--r-- | mail/heirloom-mailx/files/patch-cmd2.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/heirloom-mailx/files/patch-cmd2.c b/mail/heirloom-mailx/files/patch-cmd2.c new file mode 100644 index 000000000000..99441629030a --- /dev/null +++ b/mail/heirloom-mailx/files/patch-cmd2.c @@ -0,0 +1,22 @@ +--- cmd2.c 2006/03/04 00:32:16 1.12 ++++ cmd2.c 2010/05/09 21:50:54 1.13 +@@ -803,16 +803,17 @@ + int h = hash(name); + + for (ip = tab->i_head[h]; ip; ip = ip->i_link) { +- if (asccasecmp(ip->i_field, name)) { ++ if (asccasecmp(ip->i_field, name) == 0) { + free(ip->i_field); + if (iq != NULL) + iq->i_link = ip->i_link; + else +- tab->i_head[h] = NULL; ++ tab->i_head[h] = ip->i_link; + free(ip); + tab->i_count--; + break; + } ++ iq = ip; + } + } + |