[Freeciv-Dev] (PR#7942)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7942 >
Doh!
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
Index: client/climisc.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/climisc.c,v
retrieving revision 1.130
diff -u -d -r1.130 climisc.c
--- client/climisc.c 6 Mar 2004 11:13:04 -0000 1.130
+++ client/climisc.c 18 Mar 2004 17:49:45 -0000
@@ -1140,7 +1140,7 @@
my_snprintf(buffer4, sizeof(buffer4), _("%s"), ptype->name);
- if (ptype->veteran[punit->veteran].name != "") {
+ if (ptype->veteran[punit->veteran].name[0] != '\0') {
sz_strlcat(buffer4, " (");
sz_strlcat(buffer4, ptype->veteran[punit->veteran].name);
sz_strlcat(buffer4, ")");
Index: client/gui-gtk/mapview.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/mapview.c,v
retrieving revision 1.208
diff -u -d -r1.208 mapview.c
--- client/gui-gtk/mapview.c 15 Mar 2004 05:35:28 -0000 1.208
+++ client/gui-gtk/mapview.c 18 Mar 2004 17:50:33 -0000
@@ -189,7 +189,7 @@
my_snprintf(buffer, sizeof(buffer), "%s", ptype->name);
- if (ptype->veteran[punit->veteran].name != "") {
+ if (ptype->veteran[punit->veteran].name[0] != '\0') {
sz_strlcat(buffer, " (");
sz_strlcat(buffer, ptype->veteran[punit->veteran].name);
sz_strlcat(buffer, ")");
Index: client/gui-gtk-2.0/mapview.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/mapview.c,v
retrieving revision 1.107
diff -u -d -r1.107 mapview.c
--- client/gui-gtk-2.0/mapview.c 15 Mar 2004 05:35:28 -0000 1.107
+++ client/gui-gtk-2.0/mapview.c 18 Mar 2004 17:41:02 -0000
@@ -229,7 +229,7 @@
my_snprintf(buffer, sizeof(buffer), "%s", ptype->name);
- if (ptype->veteran[punit->veteran].name != "") {
+ if (ptype->veteran[punit->veteran].name[0] != '\0') {
sz_strlcat(buffer, " (");
sz_strlcat(buffer, ptype->veteran[punit->veteran].name);
sz_strlcat(buffer, ")");
|
|