Commit 968171e4 authored by smorlat's avatar smorlat

fix crash when no newline at the end of config file.

git-svn-id: svn+ssh:// 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 552f55f0
......@@ -185,7 +185,7 @@ void lp_config_parse(LpConfig *lpconfig){
if (pos2==NULL) pos2=pos1+strlen(pos2);
if (pos2==NULL) pos2=pos1+strlen(pos1);
else {
*pos2='\0'; /*replace the '\n' */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment