X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmsgbase.c;h=8f61f33291b7ca386302b64ec2cb3b3831709888;hb=1b1616ca8b0d20b9454fbc13bdbf5d7bc8f1ee7b;hp=10ec60887d068f470c6e667aea2a166a9f33af69;hpb=da071e05139bde1ff29c8a06c72ecfbfbda02f28;p=citadel.git diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 10ec60887..8f61f3329 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -3010,11 +3010,7 @@ struct CtdlMessage *CtdlMakeMessage( snprintf(buf, sizeof buf, "%s", author->fullname); msg->cm_fields['P'] = strdup(buf); } - for (i=0; (msg->cm_fields['P'][i]!=0); ++i) { - if (isspace(msg->cm_fields['P'][i])) { - msg->cm_fields['P'][i] = '_'; - } - } + convert_spaces_to_underscores(msg->cm_fields['P']); snprintf(buf, sizeof buf, "%ld", (long)time(NULL)); /* timestamp */ msg->cm_fields['T'] = strdup(buf);