]> diplodocus.org Git - nmh/blobdiff - sbr/smatch.c
ap: Fix write past end of addrs[] array.
[nmh] / sbr / smatch.c
index 4d1d3d6814b7f977897a2dbd22819de3ee220788..8ec6e3f2b3aae99b6a565d6f46a0ecf8cda162dc 100644 (file)
 
 
 int
 
 
 int
-smatch(char *string, struct swit *swp)
+smatch(const char *string, const struct swit *swp)
 {
 {
-    char *sp, *tcp;
+    const char *sp, *tcp;
     int firstone, len;
     int firstone, len;
-    struct swit *tp;
+    const struct swit *tp;
 
     firstone = UNKWNSW;
 
 
     firstone = UNKWNSW;