X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=listing.c;h=82d2520ba56b3a036cf38f68d4760ce37136222b;hp=cea150b4a7c8c0f29c72a82f63578e9122da346f;hb=94655b0579354d34d57a743eaeef6ad8d988a787;hpb=d09274f3e3d4dca122c308a621ea8edc100b7d99 diff --git a/listing.c b/listing.c index cea150b..82d2520 100644 --- a/listing.c +++ b/listing.c @@ -204,7 +204,7 @@ void taglist(char chr) // // Print a Line to the Listing File // -void println(char * ln) +void println(const char * ln) { unsigned int length; @@ -220,7 +220,7 @@ void println(char * ln) // // Ship Line `ln' Out; Do Page Breaks and Title Stuff // -void ship_ln(char * ln) +void ship_ln(const char * ln) { // If listing level is <= 0, then don't print anything if (listing <= 0) @@ -443,7 +443,8 @@ int d_subttl(void) if (*tok != STRING) return error("missing string"); - strcpy(subttl, (char *)tok[1]); +// strcpy(subttl, (char *)tok[1]); + strcpy(subttl, string[tok[1]]); tok += 2; @@ -464,7 +465,8 @@ int d_title(void) if (*tok != STRING) return error("missing string"); - strcpy(title, (char*)tok[1]); +// strcpy(title, (char*)tok[1]); + strcpy(title, string[tok[1]]); tok += 2; if (pageno > 1)