summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2013-08-19 11:12:21 +0300
committerUri Lublin <uril@redhat.com>2013-09-02 13:31:20 +0300
commiteb09c25c628b5baba069aba3ff72ea71917f533f (patch)
tree5650ac4cf3c5ee00c778ea5166435fb315bdae79 /server
parentd867788044fbb6f56b5b0f5bc4d9feb18da594fb (diff)
downloadspice-eb09c25c628b5baba069aba3ff72ea71917f533f.tar.gz
spice-eb09c25c628b5baba069aba3ff72ea71917f533f.tar.xz
spice-eb09c25c628b5baba069aba3ff72ea71917f533f.zip
server: bitmap_consistent: replace spice_error with spice_warning
bitmap_consistent should return true or false. Currently it aborts instead of returning false, due to spice_error. Replacing spice_error with spice_warning, provides information and returns false, as expected. This fixes Fedora bz#997932
Diffstat (limited to 'server')
-rw-r--r--server/red_parse_qxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c
index 6c0b0658..e26746c3 100644
--- a/server/red_parse_qxl.c
+++ b/server/red_parse_qxl.c
@@ -353,7 +353,7 @@ static int bitmap_consistent(SpiceBitmap *bitmap)
int bpp = MAP_BITMAP_FMT_TO_BITS_PER_PIXEL[bitmap->format];
if (bitmap->stride < ((bitmap->x * bpp + 7) / 8)) {
- spice_error("image stride too small for width: %d < ((%d * %d + 7) / 8) (%s=%d)\n",
+ spice_warning("image stride too small for width: %d < ((%d * %d + 7) / 8) (%s=%d)\n",
bitmap->stride, bitmap->x, bpp,
bitmap_format_to_string(bitmap->format),
bitmap->format);