fix copied text in error string
authorblambert <blambert@openbsd.org>
Thu, 24 Apr 2014 08:51:08 +0000 (08:51 +0000)
committerblambert <blambert@openbsd.org>
Thu, 24 Apr 2014 08:51:08 +0000 (08:51 +0000)
ok reyk@

usr.sbin/snmpd/parse.y

index db25bb8..fe5d7fe 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parse.y,v 1.30 2014/04/14 12:55:10 blambert Exp $     */
+/*     $OpenBSD: parse.y,v 1.31 2014/04/24 08:51:08 blambert Exp $     */
 
 /*
  * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -232,7 +232,7 @@ main                : LISTEN ON STRING              {
                        if (strlcpy(conf->sc_trcommunity, $3,
                            sizeof(conf->sc_trcommunity)) >=
                            sizeof(conf->sc_trcommunity)) {
-                               yyerror("r/w community name too long");
+                               yyerror("trap community name too long");
                                free($3);
                                YYERROR;
                        }