chiark / gitweb /
util: priomsg: Provide and use priomsg_update_fixed
[secnet.git] / site.c
diff --git a/site.c b/site.c
index 8ca87690baf350f7c3fee99ddd595db34bb4ade8..57ccb1dcdc4d0811a136c78a0cc229aa1ecd4778 100644 (file)
--- a/site.c
+++ b/site.c
@@ -2084,9 +2084,8 @@ static bool_t site_incoming(void *sst, struct buffer_if *buf,
        return True;
     }
 
-    if (priomsg_update_p(whynot, comm_notify_whynot_general))
-       truncmsg_add_string(&whynot->m,
-                           "not MSG1 or PROD; unknown dest index");
+    priomsg_update_fixed(whynot, comm_notify_whynot_general,
+                        "not MSG1 or PROD; unknown dest index");
     return False;
 }