Remove some statics
[samba.git] / source3 / rpc_server / srv_spoolss_nt.c
index fe7a12940ee331c01f55a91de5a1adb39efc93c7..d49731272fb251b861ba36cb4b4179038b24ff6e 100644 (file)
@@ -4376,7 +4376,8 @@ static bool construct_printer_info_7(Printer_entry *print_hnd, PRINTER_INFO_7 *p
        struct GUID guid; 
        
        if (is_printer_published(print_hnd, snum, &guid)) {
-               asprintf(&guid_str, "{%s}", smb_uuid_string_static(guid));
+               asprintf(&guid_str, "{%s}",
+                        smb_uuid_string(talloc_tos(), guid));
                strupper_m(guid_str);
                init_unistr(&printer->guid, guid_str);
                printer->action = SPOOL_DS_PUBLISH;