crash: sprintf(buffer,"no poi") with uninitialized buffer
Bug #341271 reported by
Jozef Mlich
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tangogps |
Fix Committed
|
Undecided
|
Jozef Mlich |
Bug Description
The buffer is not initialized id 0.96 and causing crash (it is very obvious when you are using touchscreen)
The patch is self explaining:
--- poi.c (revision 2)
+++ poi.c (working copy)
@@ -718,8 +718,9 @@
}
- if(!poi_found)
- g_sprintf(buffer, "<b>No POI found</b>\n");
+ if(!poi_found) {
+ buffer = g_strdup_
+ }
Changed in tangogps: | |
status: | New → Fix Committed |
assignee: | nobody → xmlich02 |
To post a comment you must log in.