$Log$
+ Revision 591.87 2002/08/12 03:00:20 ajc
+ * Fixed bug in <R>eplacestring which caused it to lock up in certain conditions
+
Revision 591.86 2002/08/12 00:09:05 ajc
* Compress VISIT records using zlib if available. This reduces the object
size from over 4k to about 70 bytes. Experimental.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
tempcdb->len = dret.size;
tempcdb->ptr = dret.data;
+#ifdef HAVE_ZLIB
cdb_decompress_if_necessary(tempcdb);
+#endif
return (tempcdb);
}
cdbret = (struct cdbdata *) mallok(sizeof(struct cdbdata));
cdbret->len = data.size;
cdbret->ptr = data.data;
+#ifdef HAVE_ZLIB
cdb_decompress_if_necessary(cdbret);
+#endif
return (cdbret);
}
long msglen = 0L;
scr_printf("Enter text to be replaced:\n: ");
- getline(srch_str, 128);
+ getline(srch_str, (sizeof(srch_str)-1) );
if (strlen(srch_str) == 0)
return;
scr_printf("Enter text to replace it with:\n: ");
- getline(rplc_str, 128);
+ getline(rplc_str, (sizeof(rplc_str)-1) );
fp = fopen(filename, "r+");
if (fp == NULL)