(map_syscall_name_to_number): ignore # at beginning-of-line
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8043 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -113,6 +113,9 @@ map_syscall_name_to_number (const char *str, int *res)
|
||||
if (f == NULL)
|
||||
return -1;
|
||||
while (fgets (buf, sizeof(buf), f) != NULL) {
|
||||
if (buf[0] == '#')
|
||||
continue;
|
||||
|
||||
if (strncmp (str, buf, str_len) == 0) {
|
||||
char *begptr = buf + str_len;
|
||||
char *endptr;
|
||||
|
Reference in New Issue
Block a user