summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-09-11 03:38:37 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-09-11 03:38:37 +0000
commitcde7d73147a7eca584e8ab938b965e49bb2947df (patch)
tree84d474271abb88eee404b8dc66c4585e135a9b1d
parent360850ab80b359ac758abf14ad65a1d4c7cec218 (diff)
make zap icon true-colour
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@334 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--MySpace/MySpace.rc2
-rw-r--r--MySpace/MySpace_8.vcproj4
-rw-r--r--MySpace/formatting.cpp6
-rw-r--r--MySpace/icon1.icobin1406 -> 0 bytes
-rw-r--r--MySpace/version.h2
-rw-r--r--MySpace/zap.icobin0 -> 894 bytes
6 files changed, 9 insertions, 5 deletions
diff --git a/MySpace/MySpace.rc b/MySpace/MySpace.rc
index 6cb28e1..ef5592d 100644
--- a/MySpace/MySpace.rc
+++ b/MySpace/MySpace.rc
@@ -143,7 +143,7 @@ END
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_MYSPACE ICON "MySpace.ico"
-IDI_ZAPS ICON "icon1.ico"
+IDI_ZAPS ICON "zap.ico"
#endif // English (Australia) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/MySpace/MySpace_8.vcproj b/MySpace/MySpace_8.vcproj
index 40f1065..aabdfea 100644
--- a/MySpace/MySpace_8.vcproj
+++ b/MySpace/MySpace_8.vcproj
@@ -556,6 +556,10 @@
/>
</FileConfiguration>
</File>
+ <File
+ RelativePath=".\zap.ico"
+ >
+ </File>
</Filter>
<File
RelativePath=".\readme.txt"
diff --git a/MySpace/formatting.cpp b/MySpace/formatting.cpp
index d6b4055..7bd8325 100644
--- a/MySpace/formatting.cpp
+++ b/MySpace/formatting.cpp
@@ -81,7 +81,7 @@ char *symbols[25] = {":D", ":E", "X(", ":O", ":p", "}:)", ":)", "X)", ":{", "B|"
":X", "Q)", ":B", ";-)", "B)", ":))", ":G", ":,", ":[", "%)", "-:", "P)", ":|", ":X"};
void encode_smileys(char *buff, int size) {
- char *tmp = new char[size];
+ char *tmp = new char[size + 1];
int in = 0, out = 0;
char sb[128];
@@ -105,8 +105,8 @@ void encode_smileys(char *buff, int size) {
}
tmp[out] = 0;
- strncpy(buff, tmp, size);
- delete tmp;
+ strncpy(buff, tmp, out + 1);
+ delete[] tmp;
buff[size - 1] = 0;
}
diff --git a/MySpace/icon1.ico b/MySpace/icon1.ico
deleted file mode 100644
index 12de5a7..0000000
--- a/MySpace/icon1.ico
+++ /dev/null
Binary files differ
diff --git a/MySpace/version.h b/MySpace/version.h
index e8e2e8e..923c5fb 100644
--- a/MySpace/version.h
+++ b/MySpace/version.h
@@ -5,7 +5,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 5
-#define __BUILD_NUM 12
+#define __BUILD_NUM 14
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
diff --git a/MySpace/zap.ico b/MySpace/zap.ico
new file mode 100644
index 0000000..0f6b7ba
--- /dev/null
+++ b/MySpace/zap.ico
Binary files differ