Skip to content

Commit b04acaf

Browse files
committed
xml/nolibxml/import: allow windows XMLs
Ignore \r added by Windows just we ignore other special chars. Signed-off-by: Brice Goglin <[email protected]>
1 parent 4e0c717 commit b04acaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hwloc/topology-xml-nolibxml.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright © 2009 CNRS
3-
* Copyright © 2009-2023 Inria. All rights reserved.
3+
* Copyright © 2009-2024 Inria. All rights reserved.
44
* Copyright © 2009-2011 Université Bordeaux
55
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
66
* See COPYING in top-level directory.
@@ -41,7 +41,7 @@ typedef struct hwloc__nolibxml_import_state_data_s {
4141
static char *
4242
hwloc__nolibxml_import_ignore_spaces(char *buffer)
4343
{
44-
return buffer + strspn(buffer, " \t\n");
44+
return buffer + strspn(buffer, " \t\n\r");
4545
}
4646

4747
static int

0 commit comments

Comments
 (0)