Add '@' as binder middle name separator. 47/15747/1
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 25 Jul 2018 14:06:21 +0000 (16:06 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 25 Jul 2018 14:06:21 +0000 (16:06 +0200)
Used binder name if set using the application id which use '@'
to separate name from version.

Change-Id: I1c4d963250ac17d4e4104b6cc69aa08b8fa95505
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
filescan-utils.c

index 05e13f9..f58a2c9 100644 (file)
@@ -117,7 +117,7 @@ const char* GetMiddleName(const char* name)
             int start;
             start = idx + 1;
             for (int jdx = start;; jdx++) {
-                if (fullname[jdx] == '-' || fullname[jdx] == '.' || fullname[jdx] == '\0') {
+                if (fullname[jdx] == '-' || fullname[jdx] == '@' || fullname[jdx] == '.' || fullname[jdx] == '\0') {
                     fullname[jdx] = '\0';
                     return &fullname[start];
                 }