From: Wilfried Göesgens Date: Mon, 16 Feb 2009 22:17:08 +0000 (+0000) Subject: * fix the Ladyhawke image post bug (hopefully) X-Git-Tag: v7.86~1447 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=98fedfd1ba3d287bd793077379725616d566f380 * fix the Ladyhawke image post bug (hopefully) --- diff --git a/webcit/messages.c b/webcit/messages.c index df72ad1ce..db867fb12 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1109,11 +1109,11 @@ void post_message(void) */ pch = strrchr(ChrPtr(att->FileName), '/'); if (pch != NULL) { - StrBufCutLeft(att->FileName, pch - ChrPtr(att->FileName)); + StrBufCutLeft(att->FileName, pch - ChrPtr(att->FileName) + 1); } pch = strrchr(ChrPtr(att->FileName), '\\'); if (pch != NULL) { - StrBufCutLeft(att->FileName, pch - ChrPtr(att->FileName)); + StrBufCutLeft(att->FileName, pch - ChrPtr(att->FileName) + 1); } /**