]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/modules/blog/serv_blog.c
CM_SetField() no longer accepts a length, just uses strdup()
[citadel.git] / citadel / server / modules / blog / serv_blog.c
index da9c199c0697fdc1baa75a35583cfb8e24edc227..fa12909365d559f487549540fc45d9f1b4033059 100644 (file)
@@ -1,6 +1,6 @@
 // Support for blog rooms
 //
-// Copyright (c) 1999-2022 by the citadel.org team
+// Copyright (c) 1999-2023 by the citadel.org team
 //
 // This program is open source software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as published
@@ -58,7 +58,7 @@ int blog_upload_beforesave(struct CtdlMessage *msg, struct recptypes *recp) {
        if (CM_IsEmpty(msg, eExclusiveID)) {
                char uuid[SIZ];
                generate_uuid(uuid);
-               CM_SetField(msg, eExclusiveID, uuid, strlen(uuid));
+               CM_SetField(msg, eExclusiveID, uuid);
        }
 
        // We also want to define a maximum length, whether we generated it or not.