1 |
Index: src/xsane.c |
2 |
=================================================================== |
3 |
--- src/xsane.c |
4 |
+++ src/xsane.c 2009-05-27 10:25:10.000000000 +0200 |
5 |
@@ -3211,7 +3211,7 @@ |
6 |
} |
7 |
else |
8 |
{ |
9 |
- snprintf(buf, sizeof(buf), xsane.devlist[xsane.selected_dev]->name); |
10 |
+ snprintf(buf, sizeof(buf), "%s" ,xsane.devlist[xsane.selected_dev]->name); |
11 |
} |
12 |
label = xsane_info_table_text_new(table, buf, 1, 3); |
13 |
|
14 |
@@ -4908,7 +4908,7 @@ |
15 |
|
16 |
snprintf(buf, sizeof(buf), ":%s", devname); |
17 |
snprintf(buf, sizeof(buf), "/%s", (strrchr(buf, ':')+1)); |
18 |
- sprintf(textptr, (strrchr(buf, '/')+1)); |
19 |
+ sprintf(textptr, "%s",(strrchr(buf, '/')+1)); |
20 |
|
21 |
xsane.device_text = strdup(devicetext); |
22 |
|