diff options
author | mathias <mathias> | 2005-01-11 12:39:01 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-01-11 12:39:01 (GMT) |
commit | 2a49732159683cd0981d49cce66f9945b83d405b (patch) | |
tree | 3f80f816e512a9069e522f11cd4bc5ffcc9bad58 /src/FbTk | |
parent | 5bbab52d6dee30554159f5b40b2715ff35d50609 (diff) | |
download | fluxbox_pavel-2a49732159683cd0981d49cce66f9945b83d405b.zip fluxbox_pavel-2a49732159683cd0981d49cce66f9945b83d405b.tar.bz2 |
fix for #1099278
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/TextureRender.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc index 5e7520b..0adb8e1 100644 --- a/src/FbTk/TextureRender.cc +++ b/src/FbTk/TextureRender.cc | |||
@@ -113,7 +113,7 @@ void TextureRender::allocateColorTables() { | |||
113 | 113 | ||
114 | if (red == 0) { | 114 | if (red == 0) { |
115 | char sbuf[128]; | 115 | char sbuf[128]; |
116 | sprintf(sbuf, "%d", size); | 116 | sprintf(sbuf, "%ld", (long int) size); |
117 | throw std::string("TextureRender::TextureRender(): " + | 117 | throw std::string("TextureRender::TextureRender(): " + |
118 | std::string(_FBTKTEXT(Error, OutOfMemoryRed, "Out of memory while allocating red buffer.", "")) + string(sbuf)); | 118 | std::string(_FBTKTEXT(Error, OutOfMemoryRed, "Out of memory while allocating red buffer.", "")) + string(sbuf)); |
119 | } | 119 | } |
@@ -122,7 +122,7 @@ void TextureRender::allocateColorTables() { | |||
122 | green = FB_new_nothrow unsigned char[size]; | 122 | green = FB_new_nothrow unsigned char[size]; |
123 | if (green == 0) { | 123 | if (green == 0) { |
124 | char sbuf[128]; | 124 | char sbuf[128]; |
125 | sprintf(sbuf, "%d", size); | 125 | sprintf(sbuf, "%ld", (long int) size); |
126 | throw std::string("TextureRender::TextureRender(): " + | 126 | throw std::string("TextureRender::TextureRender(): " + |
127 | std::string(_FBTKTEXT(Error, OutOfMemoryGreen, "Out of memory while allocating green buffer.", ""))+ string(sbuf)); | 127 | std::string(_FBTKTEXT(Error, OutOfMemoryGreen, "Out of memory while allocating green buffer.", ""))+ string(sbuf)); |
128 | } | 128 | } |
@@ -130,7 +130,7 @@ void TextureRender::allocateColorTables() { | |||
130 | blue = FB_new_nothrow unsigned char[size]; | 130 | blue = FB_new_nothrow unsigned char[size]; |
131 | if (blue == 0) { | 131 | if (blue == 0) { |
132 | char sbuf[128]; | 132 | char sbuf[128]; |
133 | sprintf(sbuf, "%d", size); | 133 | sprintf(sbuf, "%ld", (long int) size); |
134 | throw std::string("TextureRender::TextureRender(): " + | 134 | throw std::string("TextureRender::TextureRender(): " + |
135 | std::string(_FBTKTEXT(Error, OutOfMemoryBlue, "Out of memory while allocating blue buffer.", ""))+ string(sbuf)); | 135 | std::string(_FBTKTEXT(Error, OutOfMemoryBlue, "Out of memory while allocating blue buffer.", ""))+ string(sbuf)); |
136 | } | 136 | } |