1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
|
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
|
-
+
|
mpict=malloc(sizeof(MultiDependent));
if(!mpict) fatal("Allocation failed\n");
load_multidependent(data,n,mpict);
fp=open_memstream((char**)&buf,&size);
if(!fp) fatal("Cannot open memory stream\n");
edit_multidependent(mpict,name);
save_multidependent(fp,mpict);
free(dpict);
free(mpict);
fclose(fp);
if(!buf || !size) fatal("Allocation failed\n");
}
free(name);
if(i=sqlite3_prepare_v2(userdb,"UPDATE `PICEDIT` SET `DATA`=?2 WHERE ID=?1;",-1,&st,0)) {
screen_message(sqlite3_errmsg(userdb));
free(buf);
|