Commit 38e61a76 authored by rswindell's avatar rswindell
Browse files

Fix bug reported by echicken in batch_add_list():

If a filename had no extension, it could not be added via batch download
list since this code was truncating all white-space off each line read.
Now it will just truncate end-of-line characters.
parent 17a96270
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -723,7 +723,7 @@ void sbbs_t::batch_add_list(char *list)
break;
if(!fgets(str,127,stream))
break;
truncsp(str);
truncnl(str);
sprintf(f.name,"%.12s",str);
lncntr=0;
for(i=j=k=0;i<usrlibs;i++) {
......
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