* fix the Ladyhawke image post bug (hopefully)
authorWilfried Göesgens <willi@citadel.org>
Mon, 16 Feb 2009 22:17:08 +0000 (22:17 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 16 Feb 2009 22:17:08 +0000 (22:17 +0000)
webcit/messages.c

index df72ad1ce604a2a988a048a525e2967d0a21f8ca..db867fb1283b4b3f19c930a47ebc09c2c1271939 100644 (file)
@@ -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);
                }
 
                /**