segment error
This commit is contained in:
@@ -60,7 +60,7 @@ long WrenchFindStoredMedia(CVars in, CVars &out) {
|
||||
|
||||
case WRENCH_FILE_PROFILE:
|
||||
//file_uid is the UID of the user
|
||||
snprintf(vname, sizeof (vname), "SELECT profile_pic AS saved_file_name FROM members WHERE uid ='%s'", in["file_uid"].c_str());
|
||||
snprintf(vname, sizeof (vname), "SELECT uid AS member_uid, profile_pic AS saved_file_name FROM members WHERE uid ='%s'", in["file_uid"].c_str());
|
||||
break;
|
||||
|
||||
case WRENCH_FILE_MYFILE:
|
||||
@@ -137,7 +137,7 @@ long WrenchSaveStoredMedia(CVars in, CVars &out) {
|
||||
|
||||
if ( fm["family_member_id"].Long() > 0){
|
||||
pgsql_exec("UPDATE members SET profile_pic='%s' "
|
||||
" WHERE uid='%s'",in["profile"].c_str(), fm["family_member_id"].Long());
|
||||
" WHERE id=%lu",in["profile"].c_str(), fm["family_member_id"].Long());
|
||||
out["save_status"] ="completed";
|
||||
snprintf(vname, sizeof (vname), "SELECT * FROM members WHERE id ='%s'", fm["family_member_id"].Long());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user