diff options
author | Timothy Pearson <[email protected]> | 2014-11-20 01:54:12 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-11-20 01:54:39 -0600 |
commit | 540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7 (patch) | |
tree | 4a038973f4c30bfde5ea370f563933092f4b241a /tdecore | |
parent | b03b9b071f41eb2a0a2ec9c5a865d8e0178895fb (diff) | |
download | tdelibs-540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7.tar.gz tdelibs-540db0b3e7e829e71c4c32a4bcc44d4d0addcfb7.zip |
Add very early support for compressed PPDs to make_driver_db_cups
This relates to Bug 2191
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/tdeapplication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp index 13fd76a2e..0f84807df 100644 --- a/tdecore/tdeapplication.cpp +++ b/tdecore/tdeapplication.cpp @@ -1925,7 +1925,7 @@ bool TDEApplication::isCompositionManagerAvailable() { char uidstr[sizeof(uid_t)*8+1]; sprintf(uidstr, "%d", getuid()); int n = strlen(P_tmpdir)+strlen(uidstr)+strlen(pidfile)+3; - filename = (char*)malloc(n*sizeof(char)); + filename = (char*)malloc(n*sizeof(char)+1); memset(filename,0,n); strcat(filename, P_tmpdir); strcat(filename, "/."); @@ -1994,7 +1994,7 @@ bool TDEApplication::detectCompositionManagerAvailable(bool force_available, boo char uidstr[sizeof(uid_t)*8+1]; sprintf(uidstr, "%d", getuid()); int n = strlen(P_tmpdir)+strlen(uidstr)+strlen(pidfile)+3; - filename = (char*)malloc(n*sizeof(char)); + filename = (char*)malloc(n*sizeof(char)+1); memset(filename,0,n); strcat(filename, P_tmpdir); strcat(filename, "/."); @@ -2117,7 +2117,7 @@ bool TDEApplication::detectCompositionManagerAvailable(bool force_available, boo char uidstr[sizeof(uid_t)*8+1]; sprintf(uidstr, "%d", getuid()); int n = strlen(P_tmpdir)+strlen(uidstr)+strlen(pidfile)+3; - filename = (char*)malloc(n*sizeof(char)); + filename = (char*)malloc(n*sizeof(char)+1); memset(filename,0,n); strcat(filename, P_tmpdir); strcat(filename, "/."); |