Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/nfs/nlm PR/50535: David Binderman: Fix nonsense strcmp



details:   https://anonhg.NetBSD.org/src/rev/f17851956f2f
branches:  trunk
changeset: 342244:f17851956f2f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 18:31:09 2015 +0000

description:
PR/50535: David Binderman: Fix nonsense strcmp

diffstat:

 sys/fs/nfs/nlm/nlm_prot_impl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 98bf201bcefd -r f17851956f2f sys/fs/nfs/nlm/nlm_prot_impl.c
--- a/sys/fs/nfs/nlm/nlm_prot_impl.c    Sun Dec 13 18:29:00 2015 +0000
+++ b/sys/fs/nfs/nlm/nlm_prot_impl.c    Sun Dec 13 18:31:09 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nlm_prot_impl.c,v 1.1.1.1 2013/09/30 07:19:45 dholland Exp $   */
+/*     $NetBSD: nlm_prot_impl.c,v 1.2 2015/12/13 18:31:09 christos Exp $       */
 /*-
  * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
  * Authors: Doug Rabson <dfr%rabson.org@localhost>
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("FreeBSD: head/sys/nlm/nlm_prot_impl.c 255333 2013-09-06 23:14:31Z rmacklem "); */
-__RCSID("$NetBSD: nlm_prot_impl.c,v 1.1.1.1 2013/09/30 07:19:45 dholland Exp $");
+__RCSID("$NetBSD: nlm_prot_impl.c,v 1.2 2015/12/13 18:31:09 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/fail.h>
@@ -1074,7 +1074,7 @@
                break;
 #endif
        default:
-               strcmp(tmp, "<unknown>");
+               strcpy(tmp, "<unknown>");
        }
 
 



Home | Main Index | Thread Index | Old Index