Ticket #40: name_collision_no_seperator.patch
| File name_collision_no_seperator.patch, 0.6 kB (added by anonymous, 6 years ago) |
|---|
-
avahi-common/alternative.c
diff -urN avahi-0.6.10.orig/avahi-common/alternative.c avahi-0.6.10/avahi-common/alternative.c
old new 37 37 38 38 assert(s); 39 39 40 e = s;41 42 40 for (p = s; *p; p++) 43 if ( !isdigit(*p))41 if ((*p == '-') && isdigit(p+1)) 44 42 e = p+1; 45 43 46 44 if (*e) { … … 53 51 avahi_free(c); 54 52 55 53 } else 56 r = avahi_strdup_printf("%s 2", s);54 r = avahi_strdup_printf("%s-2", s); 57 55 58 56 return r; 59 57 }
