]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
more sprintf bashing
[citadel.git] / citadel / citserver.c
index ddb966012b1d878c0f66f01cc384c09873305c8c..800e043a7f841eae614ebd86077327357dc1c5a0 100644 (file)
@@ -504,7 +504,7 @@ void cmd_mesg(char *mname)
        dirs[1]=mallok(64);
        strcpy(dirs[0],"messages");
        strcpy(dirs[1],"help");
-       mesg_locate(targ,buf,2,dirs);
+       mesg_locate(targ,sizeof targ,buf,2,(const char **)dirs);
        phree(dirs[0]);
        phree(dirs[1]);
 
@@ -555,7 +555,7 @@ void cmd_emsg(char *mname)
        dirs[1]=mallok(64);
        strcpy(dirs[0],"messages");
        strcpy(dirs[1],"help");
-       mesg_locate(targ,buf,2,dirs);
+       mesg_locate(targ,sizeof targ,buf,2,(const char**)dirs);
        phree(dirs[0]);
        phree(dirs[1]);