]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-notice.c
NEWSEARCH: Fix very unsafe string handling
[irc/quakenet/newserv.git] / newsearch / ns-notice.c
index 0a364f94e659562c967d1f4bbf56700259068a93..00e9e035434af14eb327cd138512440a0262734a 100644 (file)
@@ -123,7 +123,7 @@ void notice_free(searchCtx *ctx, struct searchNode *thenode) {
       for(np=nicktable[i];np;np=nnp) {
         nnp = np->next;
         if (np->marker == nickmarker)
-          controlnotice(np, localdata->message);
+          controlnotice(np, "%s", localdata->message);
       }
     }
   }
@@ -132,7 +132,7 @@ void notice_free(searchCtx *ctx, struct searchNode *thenode) {
       for (np=nicktable[i];np;np=nnp) {
         nnp = np->next;
         if (np->marker == localdata->marker)
-         controlnotice(np, localdata->message);
+         controlnotice(np, "%s", localdata->message);
       }
     }
   }