# Segfault when Listing notes in the Map screen

**URL:** <https://discourse.cataclysmdda.org/t/segfault-when-listing-notes-in-the-map-screen/3077>\
**Category:** The Garage\
**Created:** [September 17, 2013, 4:59am UTC](https://discourse.cataclysmdda.org/t/segfault-when-listing-notes-in-the-map-screen/3077 "2013-09-17T04:59:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaethon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/phaethon/32/981_2.png) [@phaethon](https://discourse.cataclysmdda.org/u/phaethon)\
**Post date:** [September 17, 2013, 4:59am UTC](https://discourse.cataclysmdda.org/t/segfault-when-listing-notes-in-the-map-screen/3077/1 "2013-09-17T04:59:24Z")

</div>

Using 0.8 Romero:

1. make a new game
2. go to the map screen
3. create a Note that says: “%: S” (without the quotes)
4. try to List your notes
5. enjoy your segfault

I can reproduce this on a Mac using a non-SDL build. I suspect I broke the regex somehow. As an interesting side note, if your note says “%: foo” you can successfully List the note, but it says “nanoo” in the list. I stumbled across this while trying to mark scientist corpses on the map (using the corpse symbol) while also noting that the SICP book is there.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [September 17, 2013, 4:04pm UTC](https://discourse.cataclysmdda.org/t/segfault-when-listing-notes-in-the-map-screen/3077/2 "2013-09-17T16:04:50Z")

</div>

Workaround: Don’t perform format string injection attacks on the game 😃  
I think this will be an easy fix since your report is so detailed, thanks.
