Adrien Destugues
6e24fc677f
CID 1498 (and others) : when deleting a NULL pointer, operator delete is actually called. So, it must not dereference the
...
given pointer without checking first.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:07:29 +00:00
Oliver Tappe
f23b9d8a72
* added possibility to pass in the timezone when formatting the time
...
* added TODOs about the need to get rid of some of the date/time-formatting
shortcut methods
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:03:54 +00:00
Axel Dörfler
3f2a18bd30
* The UDP protocol was deleting a received error buffer twice in the case that
...
everything went okay. This finally fixes #6446 .
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:01:26 +00:00
Oliver Tappe
795ff7d3d4
* removed some useless code and protect against localtime() possibly returning
...
NULL
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:59:14 +00:00
Oliver Tappe
559cf371bc
* fix oversight that gmtime() and localtime() may return NULL, which would lead
...
to a crash
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:52:37 +00:00
Adrien Destugues
306fdb5b98
Missing call to B_TRANSLATE.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:36:04 +00:00
Adrien Destugues
59c2d19e1e
* Rewrite the parsing of xterm extension so that it doesn't touch ANSI standard things
...
* Some adjustements to the color table to have less duplicate colors
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:28:12 +00:00
Adrien Destugues
a20769b39c
CID 1500 : Potential NULL poiner dereference.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:37:10 +00:00
Adrien Destugues
3eedbbbf0e
Handle more pseudoÃ-graphic characters and ways of using them. This gets aptitude (from debianÃ) displaying properly and should also fix midnight commander.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:11:51 +00:00
Stephan Aßmus
397fd7f5d0
A better fix than r38136: Remove the useless iostream include from Shell.cpp,
...
perhaps a left-over from debugging output? Thanks to Axel for reviewing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:32:44 +00:00
Adrien Destugues
8627cb38c1
CID 1515 : Wrong pointer type.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:19:02 +00:00
Stephan Aßmus
30160db489
Fixed the build. Perhaps it's not needed for the GCC2 build.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:10:58 +00:00
Adrien Destugues
da0db45d95
CID 1555 : Wrong cast type
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 09:42:13 +00:00
Adrien Destugues
e414da37a1
CID 1584 : NULL dereference on low memory situations (get_window_info does a malloc that may fail)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 09:31:38 +00:00
Adrien Destugues
3ea58911f9
Explicitly start bash when opening a new tab, since other shells may not handle the "--login" option.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 09:12:34 +00:00
Adrien Destugues
fbebcdd42d
CID 1743 : Memory leak on error.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 08:14:34 +00:00
Adrien Destugues
8e13f13e5c
CID 1744 : memory leak on error
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 08:11:47 +00:00
Adrien Destugues
0d858bd391
Add documentation for the BTimeZone class.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 07:23:42 +00:00
Rene Gollent
606e627e76
Remove unnecessary NULL check (the view in question is created in all cases in InitCommon(), and is already dereferenced several times prior to the check in the function anyways).
...
Fixes CID 1078.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 02:45:08 +00:00
Andreas Färber
0d6a8357f4
Generic: Type fixes for atomic op
...
Cast uint32* arguments for atomic_or() to int32*.
Resolves warnings treated as errors for Big Endian targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 22:38:41 +00:00
Andreas Färber
994f861dfc
Generic: Type fixes for byte swapping
...
Cast further pointer arguments for B_HOST_TO_LENDIAN_INT32 to uint32.
Resolves warnings treated as errors for Big Endian targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 22:32:58 +00:00
François Revol
ef855c9edb
Remove unwanted compatibility aliases before I get beaten by the Dano hunters...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 21:08:59 +00:00
Oliver Tappe
3045206f61
* style adjustments - no functional change
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 17:58:06 +00:00
Oliver Tappe
80519a9d1f
* style adjustments - no functional change
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 17:53:04 +00:00
François Revol
6b26291d7b
Force reloading the current decorator on -r until they handle color changes correctly.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 17:13:12 +00:00
François Revol
8e8634bf54
Add synonyms for tootip ui_color constants. Fix WindowShade to use the new official ones.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 16:33:00 +00:00
François Revol
def864c05d
Fix some blatantly missing uses of ui_color(), but there is a lot of work to do here... BControlLook itself doesn't even respect those correctly either...
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 15:49:09 +00:00
Jérôme Duval
e6bffa0b5f
Fixed #6450 . "application type" string is not translated.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 15:30:42 +00:00
Axel Dörfler
df2895e0f8
* Automatic whitespace cleanup, no functional change.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 13:24:41 +00:00
Axel Dörfler
44a3d0d1f6
* Spotted a few reference counting bugs that were probably responsible for
...
#6446 , although I could not reproduce the exact problem.
* net_datalink::is_local_[link_]address() now releases a previous reference if
the _interfaceAddress arguments does not point to NULL.
* When a buffer is received from a device, it's interface_address should be NULL
already.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 13:21:42 +00:00
Axel Dörfler
11eccb54e2
* Added ability to be able to dump a net_interface by name.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 13:17:52 +00:00
Stefano Ceccherini
5574811008
CID 1653. symbolTable could be leaked in certain error cases.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 12:46:10 +00:00
Stefano Ceccherini
372b00b0f7
Style (pointer & spaces/tabs)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 12:18:26 +00:00
Andreas Färber
be95e26df8
ATA: Type fix for byte swapping
...
Cast pointer arguments for B_HOST_TO_LENDIAN_INT32 to uint32.
Resolves warnings treated as errors for Big Endian targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 11:57:24 +00:00
Stefano Ceccherini
afa2074362
prof was dereferenced before checking for NULL. CID 1065
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 11:17:13 +00:00
Stefano Ceccherini
f97e560e1c
Fixed incorrect check. CID 1339
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 11:05:28 +00:00
Scott McCreary
9fef36ccc8
updated cdrtools to 3.00
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 10:59:01 +00:00
Axel Dörfler
a89dbefb7d
* On change_address(), arp_remove_local_enty() must not switch to the address
...
that caused the change (but that has not actually been changed yet).
* Also, it will now reset the INADDR_ANY local address in case there is no
other address configured. This should help with automatic configuring after
deletion of an interface address (though it doesn't seem to work yet for
some other reason, at least in VMware).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 10:39:39 +00:00
Axel Dörfler
7a1123a7bf
* Moved the "run me on the boot CPU" code to where it is actually used.
...
* Added a TODO that thread_yield() doesn't like to be called from the idle
thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 10:17:42 +00:00
Stefano Ceccherini
48a05691c4
directory was leaked. CID 1745
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 09:59:20 +00:00
Stefano Ceccherini
0f72bf29fe
Check for NULL pointers. CID 1589 and 1590.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 09:42:53 +00:00
Andreas Färber
756ea297c2
Firewire: Type fix for byte swapping
...
Cast return value of __swap_int32 to uint32_t, as suggested by Ingo.
Remedies uint32 %08x warnings treated as errors in the Big Endian code path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 09:37:20 +00:00
François Revol
a4c54e94e8
Delete types when that's what you mean, not strings from the wrong list. Fixes a double free() that made ThemeManager crash.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-15 03:52:35 +00:00
Stefano Ceccherini
1345706a9f
Fix typo (CID 392)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 21:25:16 +00:00
Axel Dörfler
75148e0193
* Applied patch by Janito that fixes broken reverting when a rename operation
...
failed on last chance. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 18:41:52 +00:00
Stefano Ceccherini
cdb58cbb69
Fix a possible NULL dereference. CID 1582
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 17:34:02 +00:00
Scott McCreary
f50aabd24d
update curl optional package to 7.21.1
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 17:30:39 +00:00
Andreas Färber
8b006b36e7
Allow to suppress individual Optional Packages
...
Add Jam rule SuppressOptionalHaikuImagePackages as a mechanism to keep
packages from being installed.
Extend the UserBuildConfig.ReadMe document to cover the new command.
Closes ticket #6260 .
Changes from v1:
* Simplified IsOptionalHaikuImagePackageAdded as suggested by Ingo.
* Added example as documentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 16:43:55 +00:00
Stefano Ceccherini
2323e7fa92
CID 1697. The FILE handle was leaked.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 16:24:48 +00:00
Jérôme Duval
867b56657b
use __haiku_addr_t instead of __haiku_uint32
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-14 11:58:02 +00:00