diff options
Diffstat (limited to 'src/handler.c')
-rw-r--r-- | src/handler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handler.c b/src/handler.c index 97f54b5..982ad02 100644 --- a/src/handler.c +++ b/src/handler.c @@ -113,7 +113,7 @@ int tip_client_state_process_payload(struct tip_client *cli) } /* get chunk number from file extension, e.g. FILE.0 */ - chunk = strchr(uri, '.'); + chunk = strrchr(uri, '.'); if (chunk) { *chunk = '\0'; chunk++; |