aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index e8239994..5efbdece 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -506,7 +506,7 @@ char *safe_basename(const char *in)
}
/* Find the base name */
- for ( i=strlen(cpy)-1; i>=0; i-- ) {
+ for ( i=strlen(cpy)-1; i>0; i-- ) {
if ( cpy[i] == '/' ) {
i++;
break;