Index: modules/profile.module
===================================================================
RCS file: d:/cvsroot/newdrupal/modules/profile.module,v
retrieving revision 1.3
diff -u -r1.3 profile.module
--- modules/profile.module	16 Feb 2004 09:41:00 -0000	1.3
+++ modules/profile.module	20 Feb 2004 15:22:59 -0000
@@ -256,7 +256,7 @@
   else if ($size[0] > $maxwidth || $size[1] > $maxheight) {
     $error = t("The uploaded image is too large; the maximum dimensions are %a pixels.", array("%a" => variable_get("profile_avatar_dimensions", "85x85")));
   }
-  else if ($file = file_save_upload('profile_avatar', variable_get("profile_avatar_path", "avatars") . FILE_SEPARATOR .'avatar-'. $user->uid . $extension, 1)) {
+  else if ($file = file_save_upload($file, variable_get("profile_avatar_path", "avatars") . FILE_SEPARATOR .'avatar-'. $user->uid . $extension, 1)) {
     $edit["profile_avatar"] = $file->path;
   }
   else {
