diff options
Diffstat (limited to 'lib/libchmfile/libchmurlfactory.h')
-rw-r--r-- | lib/libchmfile/libchmurlfactory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libchmfile/libchmurlfactory.h b/lib/libchmfile/libchmurlfactory.h index a897138..fba5614 100644 --- a/lib/libchmfile/libchmurlfactory.h +++ b/lib/libchmfile/libchmurlfactory.h @@ -113,7 +113,7 @@ static inline bool handleFileType( const TQString& link, TQString& generated ) if ( !link.endsWith( intext ) ) return false; - TQString filelink = link.left( link.length() - strlen( intext ) ); + TQString filelink = link.left( link.length() - intext.length() ); generated = "<html><body><img src=\"" + filelink + "\"></body></html>"; return true; } |