From 14b6893ae40eddd3ae1a4fa16ffbfbfb8e977925 Mon Sep 17 00:00:00 2001 From: pfelt Date: Thu, 20 Aug 2009 03:16:26 +0000 Subject: [PATCH] -- fix: a non StrictCompile() build warning. i'm not sure this code every worked properly --- src/libs/msgapi/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/msgapi/cookie.c b/src/libs/msgapi/cookie.c index 04a2965..6e50dda 100644 --- a/src/libs/msgapi/cookie.c +++ b/src/libs/msgapi/cookie.c @@ -158,7 +158,7 @@ MsgAuthDeleteCookie(const char *username, const char *token) // next, clear the existing file rewind(cookiefile); - ftruncate((int)cookiefile, 0); + ftruncate(fileno(cookiefile), 0); // now, go through memory writing out only the cookies we want to keep for (i = 0; i < cookiecount; i++) {