Mercurial > pidgin
annotate pixmaps/smileys/Makefile.mingw @ 5431:49f857d4b754
[gaim-migrate @ 5811]
Tim Mooney (enchanter) writes:
"In src/protocols/jabber/jabber.c, in the function
`jabber_xfer_read',
sscanf is called like such:
sscanf(lenstr, "Content-Length: %d", &size);
The problem is that `size' is of type `size_t', which
is always the largest
integral type size supported on your platform.
That means on 32 bit platforms, it's either a long or
an int (they're the
same, 32 bits wide), and using %d as the format is ok.
On 64 bit platforms, size_t will be a long, so using %d
isn't sufficient.
Since size_t is always as big as a `long' on every
platform, even 32 bit
platforms, there should be no problem switching the
format to %ld.
That will fix the problem for 64 bit platforms, and
shouldn't cause any
change on 32 bit platforms.
Patch is attached. The problem was detected and
warned about by the
vendor compiler on the 64 bit platform I'm using, Tru64
UNIX."
since it still compiles here, i'm putting this in
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 18 May 2003 13:12:37 +0000 |
parents | 50cea25d0a2c |
children | eb6feb00e6f3 |
rev | line source |
---|---|
4318
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
1 # |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
2 # Makefile.mingw |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
3 # |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
4 # Description: Makefile for win32 (mingw) version of Gaim pixmaps |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
5 # |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
6 |
4708
50cea25d0a2c
[gaim-migrate @ 5019]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4318
diff
changeset
|
7 INSTALL_DIR = ../../win32-install-dir/pixmaps/gaim/smileys |
4318
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
8 |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
9 include ./Makefile.am |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
10 |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
11 install: |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
12 if test '$(SUBDIRS)'; then \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
13 list='$(SUBDIRS)'; for subdir in $$list; do \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
14 $(MAKE) -C $$subdir -f Makefile.mingw install; \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
15 done; \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
16 fi; |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
17 if test '$(EXTRA_DIST)'; then \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
18 mkdir -p $(INSTALL_DIR); \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
19 cp $(EXTRA_DIST) $(INSTALL_DIR); \ |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
20 fi; |
5f0385678315
[gaim-migrate @ 4573]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
21 |