X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-temp.c;h=aff501e8d46966476b4e0a72f603153e0fac25d2;hb=c035448d309f41c90cabe27cc6f28f758e7e024d;hp=a537dd934f7b7541068b006014f0c559bedf6f79;hpb=93cdcca9ba4018c094c558418a120928f2ab32ee;p=libucw.git diff --git a/lib/fb-temp.c b/lib/fb-temp.c index a537dd93..aff501e8 100644 --- a/lib/fb-temp.c +++ b/lib/fb-temp.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Temporary Fastbufs + * UCW Library -- Temporary Fastbufs * * (c) 2002--2004 Martin Mares * @@ -28,14 +28,14 @@ static void CONSTRUCTOR temp_init_config(void) } struct fastbuf * -bopen_tmp(uns bufsize) +bopen_tmp(uns buflen) { byte buf[256]; struct fastbuf *f; static uns temp_counter; sprintf(buf, temp_template, (int) getpid(), temp_counter++); - f = bopen(buf, O_RDWR | O_CREAT | O_TRUNC, bufsize); + f = bopen(buf, O_RDWR | O_CREAT | O_TRUNC, buflen); bconfig(f, BCONFIG_IS_TEMP_FILE, 1); return f; }