home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
GIFDESC2.MOD
< prev
next >
Wrap
Text File
|
1990-05-11
|
3KB
|
77 lines
Snorkel #1 @3459
Wed May 09 09:19:25 1990
5Reference : 1GIFINFO.MOD0
5Written by: 2Snorkel #1 @34590
is that if the user makes his description too long, it runs over into the next
field. To eliminate this problem, look for the following lines in XFER.C:
2In "4void upload2":
add "w" to the list of integers, so that it reads:
int i,i1,i2,ok,xfer,f,4w0;
2next,
pl("Please enter a one line description."); /*1 search for0 */
outstr(": ");
inputl(u.description,58);
2replace the above lines with the following:
if(strstr(u.filename,".GIF")) /* 1add0 */
w=46; /* 1add0 */
else /* 1add0 */
w=58; /* 1add0 */
pl("Please enter a one line description.");
outstr(": ");
inputl(u.description,w); /* 2changed0 */
2Now in "4int upload2":
add "w" to the list of integers
int i,i1,i2,ok,f,4w0;
2next,
outstr(s);
inputl(u.description,58); /* 1search for0 */
2replace the above lines with the following:
outstr(s);
if(strstr(u.filename,".GIF")) /* 1add 0*/
w=46; /* 1add0 */
else /* 1add0 */
w=58; /* 1add0 */
inputl(u.description,w); /*2 changed0 */
Now if you change the length of the string inserted before the description, be
sure to change the value of 4w0 from 46 to (58 minus length of your string).
The string, as written above, will print out something like:
TEST.GIF: 34k : (320x200x256) 2This is the part you actually input.
The 4%-3d0 part in the description line is so that all the descriptions added
will come out lined up, so if you were uploading a 16 color .GIF, the line
would look like:
TEST.GIF: 34k : (320x200x16 ) 2This is the part you actually input.
So if you eliminate the parentheses around the 1%dx%dx%-3d0, be sure to change
the first value of 4w0 to 48.
1°
1°
1°
1°
4Snorkel 1@3459
WWIVNet Origin:
The M&M Factory
Node 3459
St. Louis, MO
(314)842-4983
>>
Host of
The Scuba Forum
Sub-Type 3459
<<