Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are compile errors in strdup implementation #113

Closed
tfarina opened this issue Sep 16, 2018 · 1 comment
Closed

There are compile errors in strdup implementation #113

tfarina opened this issue Sep 16, 2018 · 1 comment

Comments

@tfarina
Copy link

tfarina commented Sep 16, 2018

../confuse.c:118:15: error: use of undeclared identifier 'str'
siz = strlen(str) + 1;
^
../confuse.c:123:15: error: use of undeclared identifier 'str'
memcpy(copy, str, siz);

The fix could be either change the parameter to 'str' or change usage of 'str' in the function body to 's'.

@troglobit
Copy link
Collaborator

Well, that's an obvious fix. But what's not obvious is what system you are building libConfuse for? Not having strdup() is very rare, unless you're building for a very stripped down non-POSIX compliant embedded system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants