X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fblog%2Fserv_blog.c;h=5459898f759095115fb06af6877b9d322d2efbb9;hb=98c6d07ff027ddc7c2bd74987b4f70642b159c7c;hp=fb95d613b4a1fc2a2df963a686a31f15d6bb15d0;hpb=f97e057f7563f920d7ed08cd8c27df4991b56112;p=citadel.git diff --git a/citadel/modules/blog/serv_blog.c b/citadel/modules/blog/serv_blog.c index fb95d613b..5459898f7 100644 --- a/citadel/modules/blog/serv_blog.c +++ b/citadel/modules/blog/serv_blog.c @@ -74,18 +74,11 @@ int blog_upload_beforesave(struct CtdlMessage *msg) { */ if (msg->cm_fields['E'] == NULL) { - char uuid[BLOG_EUIDBUF_SIZE]; + char uuid[37]; generate_uuid(uuid); msg->cm_fields['E'] = strdup(uuid); } - /* - * We also want to define a maximum length, whether we generated it or not. - */ - else if (strlen(msg->cm_fields['E']) >= BLOG_EUIDBUF_SIZE) { - msg->cm_fields['E'][BLOG_EUIDBUF_SIZE-1] = 0; - } - /* Now allow the save to complete. */ return(0); }