shithub: libobj

Download patch

ref: fa3f3d5395f9bf04b3df4f695a43dbfb0655c577
parent: 82e650b577a5c7eea32fcff32d85b3fbcdfc6f0a
author: rodri <rgl@antares-labs.eu>
date: Sat Dec 30 10:16:58 EST 2023

allow object names to have '.' and '_'.

--- a/obj.c
+++ b/obj.c
@@ -280,7 +280,7 @@
 			}
 			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){