Merge lp:~jpakkane/thumbnailer/off-by-one-fix into lp:thumbnailer

Proposed by Jussi Pakkanen
Status: Merged
Approved by: Jussi Pakkanen
Approved revision: 56
Merged at revision: 54
Proposed branch: lp:~jpakkane/thumbnailer/off-by-one-fix
Merge into: lp:thumbnailer
Diff against target: 12 lines (+1/-1)
1 file modified
src/thumbnailcache.cpp (+1/-1)
To merge this branch: bzr merge lp:~jpakkane/thumbnailer/off-by-one-fix
Reviewer Review Type Date Requested Status
Jamie Strandboge Approve
PS Jenkins bot (community) continuous-integration Approve
Unity Team Pending
Review via email: mp+189619@code.launchpad.net

Commit message

Fix off by one error.

Description of the change

Fix off by one error.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

ACK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/thumbnailcache.cpp'
2--- src/thumbnailcache.cpp 2013-10-02 12:02:04 +0000
3+++ src/thumbnailcache.cpp 2013-10-07 14:38:30 +0000
4@@ -109,7 +109,7 @@
5 if(ind == 0) {
6 throw runtime_error("/proc/self/attr/current malformed, starts with '_'.");
7 }
8- return core.substr(0, ind-1);
9+ return core.substr(0, ind);
10 }
11
12 class ThumbnailCachePrivate {

Subscribers

People subscribed via source and target branches

to all changes: