]> code.citadel.org Git - citadel.git/blobdiff - textclient/src/citadel_ipc.c
Removed the _floorpic_ infrastructure entirely -- we don't use those anymore.
[citadel.git] / textclient / src / citadel_ipc.c
index c7e61bc4978ca43ab1c6903f6bd6395b92a3db08..ec23b1626829ecb2e1be9b1ca6d6d6ffc9a8df51 100644 (file)
@@ -92,7 +92,7 @@ char *axdefs[]={
         };
 
 
-INLINE void CtdlIPC_lock(CtdlIPC *ipc)
+void CtdlIPC_lock(CtdlIPC *ipc)
 {
        if (ipc->network_status_cb) ipc->network_status_cb(1);
 #ifdef THREADED_CLIENT
@@ -101,7 +101,7 @@ INLINE void CtdlIPC_lock(CtdlIPC *ipc)
 }
 
 
-INLINE void CtdlIPC_unlock(CtdlIPC *ipc)
+void CtdlIPC_unlock(CtdlIPC *ipc)
 {
 #ifdef THREADED_CLIENT
        pthread_mutex_unlock(&(ipc->mutex));
@@ -1520,7 +1520,7 @@ int CtdlIPCFileUpload(CtdlIPC *ipc, const char *save_as, const char *comment,
                return -3;
 
        MimeType = GuessMimeType(&MimeTestBuf[0], len);
-       aaa = (char *)malloc(strlen(save_as) + strlen(comment) + 7);
+       aaa = (char *)malloc(strlen(save_as) + strlen(MimeType) + strlen(comment) + 7);
        if (!aaa) return -1;
 
        sprintf(aaa, "UOPN %s|%s|%s", save_as, MimeType,  comment);