aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-12-30 15:16:58 +0000
committerrodri <rgl@antares-labs.eu>2023-12-30 15:16:58 +0000
commitfa3f3d5395f9bf04b3df4f695a43dbfb0655c577 (patch)
treee59f4a01c421b8f9b6ec4cb786a60ed4d8f8af32
parent82e650b577a5c7eea32fcff32d85b3fbcdfc6f0a (diff)
downloadlibobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.tar.gz
libobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.tar.bz2
libobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.zip
allow object names to have '.' and '_'.
-rw-r--r--obj.c2
1 files changed, 1 insertions, 1 deletions
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){