From fa3f3d5395f9bf04b3df4f695a43dbfb0655c577 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 30 Dec 2023 15:16:58 +0000 Subject: allow object names to have '.' and '_'. --- obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj.c b/obj.c index f896214..1b0f026 100644 --- a/obj.c +++ b/obj.c @@ -280,7 +280,7 @@ objparse(char *file) } do{ *p++ = c; - }while(c = Bgetc(bin), isalnum(c) && p-buf < sizeof(buf)-1); + }while(c = Bgetc(bin), (isalnum(c) || c == '.' || c == '_') && p-buf < sizeof(buf)-1); *p = 0; o = geto(obj, buf); if(o == nil){ -- cgit v1.2.3