projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a708ab
)
* fix the Ladyhawke image post bug (hopefully)
author
Wilfried Göesgens
<willi@citadel.org>
Mon, 16 Feb 2009 22:17:08 +0000
(22:17 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Mon, 16 Feb 2009 22:17:08 +0000
(22:17 +0000)
webcit/messages.c
patch
|
blob
|
history
diff --git
a/webcit/messages.c
b/webcit/messages.c
index df72ad1ce604a2a988a048a525e2967d0a21f8ca..db867fb1283b4b3f19c930a47ebc09c2c1271939 100644
(file)
--- 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
);
}
/**