fix file extension detection

Sun, 06 Jan 2019 14:38:57 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 06 Jan 2019 14:38:57 +0100
changeset 201
196a3caebdc7
parent 200
4796fa483825
child 202
c374d11d6720

fix file extension detection

src/server/safs/objecttype.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/objecttype.c	Sat Jan 05 18:09:56 2019 +0100
+++ b/src/server/safs/objecttype.c	Sun Jan 06 14:38:57 2019 +0100
@@ -50,6 +50,7 @@
             if(path.ptr[i] == '.') {
                 ext.ptr = path.ptr + i + 1;
                 ext.length = path.length - i - 1;
+                break;
             }
         }
 

mercurial