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

cups-2.2.10/ppdc/ppdmerge.cxx:202]: (error) Using pointer to local variable 'bckname' that is out of scope. #5455

Closed
dcb314 opened this issue Dec 10, 2018 · 2 comments

Comments

@dcb314
Copy link

dcb314 commented Dec 10, 2018

cups-2.2.10/ppdc/ppdmerge.cxx:157] -> [cups-2.2.10/ppdc/ppdmerge.cxx:144] -> [cups-2.2.10/ppdc/ppdmerge.cxx:202]: (error) Using pointer to local variable 'bckname' that is out of scope.

$ fgrep bckname ppdc/ppdmerge.cxx
char bckname[1024]; // Backup filename
snprintf(bckname, sizeof(bckname), "%s.bck", inname);
if (rename(inname, bckname))
inname, bckname, strerror(errno));
inname = bckname;
$

@michaelrsweet
Copy link
Collaborator

[master 70bdce1] Fix ppdmerge backup filename (Issue #5455)

[branch-2.2 f7d4cac] Fix ppdmerge backup filename (Issue #5455)

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

No branches or pull requests

3 participants
@michaelrsweet @dcb314 and others